[Top][All Lists]

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

Re: string-ports issue on Windows

From: Mark H Weaver
Subject: Re: string-ports issue on Windows
Date: Tue, 16 Apr 2019 13:15:58 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)


Eli Zaretskii <address@hidden> writes:

>> From: Christopher Lam <address@hidden>
>> Date: Tue, 16 Apr 2019 04:13:14 +0000
>> I'm struggling with string-ports on Windows.
> Which version of Guile are you using, and where/how did you obtain the
> Windows binary?
>> Last para of
>> "With string ports, the port-encoding is treated differently than other
>> types of ports. When string ports are created, they do not inherit a
>> character encoding from the current locale. They are given a default locale
>> that allows them to handle all valid string characters."
>> This causes a string-sanitize function to not run correctly in Windows.
>> (locale-encoding) says "CP1252" no matter what LANG or setlocale I try.
>> The use case is to sanitize string for html, but on Windows it munges
>> extended-unicode.
> Can you show the code that doesn't work for you as you expected?  At
> least the example in "String Ports" seems to work for me as I'd
> expect, with Guile 2.0.11.

The change in string ports that Christopher is referring to was first
introduced in Guile 2.2.0.


reply via email to

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