guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with UTF-8, "write, " and some characters using initial locale


From: Taylor Venable
Subject: Problem with UTF-8, "write, " and some characters using initial locale
Date: Sat, 20 Nov 2010 10:58:02 -0500

Hi there, I'm having a strange problem using "write" in recent Git
versions. When I include certain characters in a string passed to
write, it prints odd hex representations of the Latin-1 encodings of
those characters: "odd" because the result is not valid UTF-8 even
though I believe my environment indicates it should be outputting in
UTF-8. I've put an example interaction on my website:
[http://metasyntax.net/tmp/guile.txt] (opening it in a hex editor is
helpful to check that the characters which are correct are properly
UTF-8 encoded) After I queried my locale environment using (setlocale
LC_ALL) then everything gets written properly - from the documentation
it seemed to me that this should not have a side effect unless the
"locale" argument was provided. I'm using Guile 1.9.13.91-b7106 on
Linux x86_64. It seemed to me like it had bug potential, but maybe my
understanding of locales and encodings is flawed. Please let me know
if there's any other information I can provide or things I can test.

Best regards,

-- 
Taylor C. Venable
http://metasyntax.net/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]