From: Philip McGrath <philip@philipmcgrath.com>
To: ludo@gnu.org, 55912@debbugs.gnu.org
Cc: maximedevos@telenet.be
Subject: [bug#55912] [PATCH] home: Add OpenSSH service.
Date: Fri, 17 Jun 2022 08:42:41 -0400 [thread overview]
Message-ID: <22679917.6Emhk5qWAg@avalon> (raw)
In-Reply-To: <623fb4e4eea75f728248bb706fbed9e5677bcc22.camel@telenet.be>
[-- Attachment #1: Type: text/plain, Size: 1513 bytes --]
On Thursday, June 16, 2022 12:45:30 PM EDT Maxime Devos wrote:
> Ludovic Courtès schreef op do 16-06-2022 om 18:18 [+0200]:
> > In Guile proper, it would be nice if there were a ‘%file-name-encoding’
> > fluid.
>
> I was more thinking of a %file-name-encoding parameter (instead of a
> fluid), but that's what I had in mind.
>
I think the problem goes deeper than that: an R6RS string is a fixed-length
sequence of Unicode scalar values, but a path on a Unix-like system is a
sequence of non-null bytes, and on Windows is a sequence of UTF-16 code units
with possibly unpaired surrogates (aka WTF-16 [1]). That is, there are some
valid paths that can not be represented as Scheme strings.
Racket has a really nice path datatype that handles these subtleties (there
are many bad headaches if you want to be portable to Windows) while allowing
an ergonomic use of strings for the common case. [2]
Zuo has a more minimal path API which takes advantage of the fact that a Zuo
string is like a Scheme bytevector. [3] It doesn't handle all of the
complexity managed by the Racket path type, but focuses on the subset of paths
applicable to a build environment. The implementation of all of Zuo is a
single C file. [4]
-Philip
[1]: https://simonsapin.github.io/wtf-8/
[2]: https://docs.racket-lang.org/reference/pathutils.html
[3]: https://docs.racket-lang.org/zuo/zuo-base.html#%28part._.Paths%29
[4]: https://github.com/racket/racket/blob/master/racket/src/zuo/zuo.c
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2022-06-17 13:20 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-11 16:49 [bug#55912] [PATCH] home: Add OpenSSH service Ludovic Courtès
2022-06-11 19:51 ` Maxime Devos
2022-06-11 22:13 ` Maxime Devos
2022-06-13 9:41 ` Ludovic Courtès
2022-06-13 10:51 ` Maxime Devos
2022-06-13 12:02 ` Ludovic Courtès
2022-06-13 12:38 ` Maxime Devos
2022-06-13 21:58 ` Maxime Devos
2022-06-14 8:08 ` Ludovic Courtès
2022-06-15 20:29 ` [bug#55912] [PATCH v2] " Ludovic Courtès
2022-06-15 20:47 ` Maxime Devos
2022-06-16 10:47 ` Ludovic Courtès
2022-06-16 12:16 ` Maxime Devos
2022-06-16 12:31 ` Maxime Devos
2022-06-16 16:18 ` [bug#55912] [PATCH] " Ludovic Courtès
2022-06-16 16:45 ` Maxime Devos
2022-06-17 12:32 ` Ludovic Courtès
2022-06-17 12:42 ` Philip McGrath [this message]
2022-06-17 20:56 ` Maxime Devos
2022-06-18 21:41 ` bug#55912: " Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=22679917.6Emhk5qWAg@avalon \
--to=philip@philipmcgrath.com \
--cc=55912@debbugs.gnu.org \
--cc=ludo@gnu.org \
--cc=maximedevos@telenet.be \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.