[gambit-list] Character encoding and the repl
Atticus
atticus0 at posteo.org
Fri Jun 19 17:53:04 EDT 2015
gsi -:tA
(string->list (cdr (shell-command "grep Ver testfile" #t)))
-> (#\V #\e #\r #\h #\xc3 #\xbc #\l #\l #\u #\n #\g #\newline)
gsi -:tA (with readtable-max-unescaped-char-set set in gambcini)
(string->list (cdr (shell-command "grep Ver testfile" #t)))
-> (#\V #\e #\r #\h #\Ã #\¼ #\l #\l #\u #\n #\g #\newline)
Same results for the 4.7.6 release version.
Marc Feeley <feeley at iro.umontreal.ca> writes:
> I am more interested in the -:tA case. From what I can see, your ü is being passed as 2 bytes, and is returned as 2 bytes (in this case, 2 characters), and it is the console that is interpreting this 2 byte sequence and showing a ü on the terminal. So it seems to be correct, but in fact it is not. I just want to make sure I understand this before trying to find a solution to your problem. This confusion seems to be exactly what Mikael More was trying to avoid by forcing escapes on any characters <= 127.
>
> Marc
>
>> On Jun 19, 2015, at 1:49 PM, Atticus <atticus0 at posteo.org> wrote:
>>
>> With gsi -:tU
>>
>> (string->list (cdr (shell-command "grep Ver testfile" #t))
>> -> (#\V #\e #\r #\h #\Ã #\¼ #\l #\l #\u #\n #\g #\newline)
More information about the Gambit-list
mailing list