guile-user
[Top][All Lists]
Advanced

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

Re: guile can't find a chinese named file


From: Eli Zaretskii
Subject: Re: guile can't find a chinese named file
Date: Mon, 27 Feb 2017 18:07:14 +0200

> From: Andy Wingo <address@hidden>
> Date: Sun, 26 Feb 2017 22:20:31 +0100
> 
> In Scheme, strings are sequences of characters.  Encoding and decoding
> is only needed when going to and from bytes.  Guile supports a finite
> number of encodings, so in general some encoding/decoding will always be
> needed.  The specific encoding may change over time.

The lesson of Emacs development is that there's a need for
"characters" that represent raw bytes which cannot be decoded into the
internal representation, for whatever reasons.  These special
"characters" need to be representable in strings, among "normal"
recognizable characters (and thus distinguishable from the latter
kind), and they need to be converted back to their single-byte form
when the string is output to the external world.  An implementation of
text that doesn't include these features will always fail to support
some important use cases.



reply via email to

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