[Nix-dev] Re: Compiling Nix code

Michael Raskin 7c6f434c at mail.ru
Thu Feb 25 16:04:23 CET 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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? OK, in this case it is not exactly bug. I did a
completely out-of-the-box experiment.

Thanks for the hint, I'll add that line to .guile just in case.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJLhpF2AAoJEE6tnN0aWvw3eqYIAKnz/ewq1S0r8tKNFxSQH1+G
x0oIVDkqrTJddSiM2nlto2DvwkATrfxJHL58bv8RxYR1l+XW1fFbVGGXv/WgY6XH
TZYpaAHR4ZQDAj9FqO12RwyWG7llatCZ2sZO1RCh+N1HIMy8AJjocyTc3Ht5Er7u
PaGOMfunIw7h9jOKnj1yU53EUiqiOuQLt7B8cQqoKeZ0n5GiUPzrgfbNoOlSVMRa
qpxBuuye8WqE/Q3VwPJ+4rV674PqROty20gPGF+ZdQlyRNDmomwchMucyD24k4/X
yeRk1PC3B+nPFcEM5EMBzyLagF1g9L6otOkiU8/8Nx7f89i1btIwrJLHh5eSZVk=
=g1q7
-----END PGP SIGNATURE-----



More information about the nix-dev mailing list