[Nix-dev] Re: Compiling Nix code
Ludovic Courtès
ludo at gnu.org
Thu Feb 25 16:20:16 CET 2010
Hi,
Michael Raskin <7c6f434c at mail.ru> writes:
> On 02/25/2010 05:46 PM, Ludovic Courtès wrote:
>>> Unicode-capable? Please make Unicode-capable version of Guile the
>>> default in Nixpkgs. (string-length "я") -> 2.
>>
>> It works for me:
>>
>> --8<---------------cut here---------------start------------->8---
>> scheme@(guile-user)> (setlocale LC_ALL "")
>> $3 = "LC_CTYPE=en_US.UTF-8;LC_NUMERIC=en_US.UTF-8;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=fr_FR.UTF-8;LC_NAME=en_US.UTF-8;LC_ADDRESS=en_US.UTF-8;LC_TELEPHONE=en_US.UTF-8;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=en_US.UTF-8"
>> scheme@(guile-user)> (string-length "я")
>> $4 = 1
>> --8<---------------cut here---------------end--------------->8---
>>
>> Please direct bug reports to ‘bug-guile at gnu.org’ and gratuitous bashing
>> to /dev/null.
>
> So I have to explicitly set locale inside Guile for it to take the
> locale from environment?
Yes, like in C on POSIX systems.
Thanks,
Ludo’.
More information about the nix-dev
mailing list