[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:28:04 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)

Hi Christopher,

Christopher Lam <address@hidden> writes:

> I'm struggling with string-ports on Windows.
> 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 explain more fully what the problem is?  I know a fair amount
about Unicode, but my knowledge of Windows is extremely weak.

What exactly is "extended-unicode" in this context?  References welcome.


reply via email to

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