[Top][All Lists]

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

Re: string-ports issue on Windows

From: Eli Zaretskii
Subject: Re: string-ports issue on Windows
Date: Tue, 16 Apr 2019 17:34:30 +0300

> 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.

reply via email to

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