GNU bug report logs -
#55912
[PATCH] home: Add OpenSSH service.
Previous Next
Reported by: Ludovic Courtès <ludo <at> gnu.org>
Date: Sat, 11 Jun 2022 16:50:02 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #47 received at 55912 <at> debbugs.gnu.org (full text, mbox):
Maxime Devos <maximedevos <at> telenet.be> skribis:
> I did a quick test, and apparently Guile calls nl_langinfo to determine
> the encoding, which returns ANSI_X3.4-1968, because glibc defaults to
> the C locale. So unless you want to change the encoding of the C
> locale or change the default locale or override glibc's choice of
> default locale in Guile, I don't think there's anything to change in
> Guile?
Glibc 2.35 includes the “C.UTF-8” locale; I don’t know if it’s the
default, but it will likely help.
> Somewhat related, I could look into separating locales from the file
> name encoding in Guile (with a parameter object or something) later?
> Not a solution as-is, but would be convenient in many places ...
Yes, that too. In (guix build syscalls), there’s a variant of ‘scandir’
for instance that is locale-independent and decodes file names as UTF-8.
Nowadays that’s probably the most sensible option.
In Guile proper, it would be nice if there were a ‘%file-name-encoding’
fluid.
Thanks,
Ludo’.
This bug report was last modified 2 years and 334 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.