What does this output in Linux?

I think I have my answer. I finally succeed in getting G’MIC to print characters correctly.

The answer is to have system-wide UTF-8 support.

C:\WINDOWS\system32>gmic echo {`'Ç'`}
[gmic]./ Start G'MIC interpreter (v.3.3.3).
Ç
[gmic]./ End G'MIC interpreter.

EDIT: Actually, never mind, something is still up:

C:\WINDOWS\system32>gmic echo ${rep_string_permutation_index2str\ §abcÁ×,10,1}
[gmic]./ Start G'MIC interpreter (v.3.3.3).
abcç
[gmic]./ End G'MIC interpreter.

Works here though:

C:\WINDOWS\system32>gmic echo {`'§abcÁ×'`}
[gmic]./ Start G'MIC interpreter (v.3.3.3).
§abcÁ×
[gmic]./ End G'MIC interpreter

There seems to be something very, very wrong with my own custom command, and I don’t understand it.

Here’s my guess to what happened. As @David_Tschumperle printed out
e {`'é'`} command, there is two numbers. My algorithm sorted the additional numbers. So, that’s why my code did not work out and prints out the wrong characters at the end. And that’s something I don’t know how to address.

My command does work on GUI plugin however, so this further complicates my debugging.

2 Likes