[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
> https://www.gnu.org/software/guile/manual/html_node/String-Ports.html
> "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.
Thanks,
Mark
- string-ports issue on Windows, Christopher Lam, 2019/04/16
- Re: string-ports issue on Windows, Eli Zaretskii, 2019/04/16
- Re: string-ports issue on Windows,
Mark H Weaver <=
- Re: string-ports issue on Windows, Christopher Lam, 2019/04/16
- Re: string-ports issue on Windows, Mark H Weaver, 2019/04/17
- Re: string-ports issue on Windows, Christopher Lam, 2019/04/18
- Re: string-ports issue on Windows, Eli Zaretskii, 2019/04/18
- Re: string-ports issue on Windows, Mark H Weaver, 2019/04/18
- Re: string-ports issue on Windows, Mark H Weaver, 2019/04/18
- Re: string-ports issue on Windows, Christopher Lam, 2019/04/19