On Mon, 2014-03-31 at 17:41 -0400, Mark H Weaver wrote: > Игорь Гайсин <[email protected]> writes: > > > Hi, dmitriy. Try to add this line to head your scripts > > > > (setlocale LC_ALL "") > > (set-port-encoding! (current-input-port) "utf-8") > > (set-port-encoding! (current-output-port) "utf-8") > > The 'setlocale' call is indeed important. >
Yes, it is. And let me emphasize this again for any non latin-1 users. Because it's so common that I was asked by others frequently. My projects are heavily using CJK, so I always put it under shebang lines to avoid "????" situation: ------------------------code----------------------- #! /bin/env guile !# (setlocale LC_ALL "") ------------------------end------------------------ Don't forget this ;-) > The next two lines shouldn't be needed, and would cause breakage on > non-utf8 locales. > > Regards, > Mark > > > > Dima <[email protected]> writes: > > > >> Hi. > >> Did something change from guile 1.8.x to 2.0 with regards to unicode > >> support. > >> > >> I have a script that has strings written on russian without much care, and > >> it does not work on 2.0. > >> > >> I want to make sure whether there are changes in guile or something else. > >> > >> Thanks, regards, > >> Dima. >
