mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
Document modal encodings problem in ref doc
* doc/ref/api-io.texi (Ports): note that modal encodings are not supported
This commit is contained in:
parent
adfb428466
commit
912a870246
1 changed files with 6 additions and 0 deletions
|
@ -76,6 +76,12 @@ how characters and strings written to the port are converted to bytes.
|
||||||
When ports are created, they inherit their character encoding from the
|
When ports are created, they inherit their character encoding from the
|
||||||
current locale, but, that can be modified after the port is created.
|
current locale, but, that can be modified after the port is created.
|
||||||
|
|
||||||
|
Currently, the ports only work with @emph{non-modal} encodings. Most
|
||||||
|
encodings are non-modal, meaning that the conversion of bytes to a
|
||||||
|
string doesn't depend on its context: the same byte sequence will always
|
||||||
|
return the same string. A couple of modal encodings are in common use,
|
||||||
|
like ISO-2022-JP and ISO-2022-KR, and they are not yet supported.
|
||||||
|
|
||||||
Each port also has an associated conversion strategy: what to do when
|
Each port also has an associated conversion strategy: what to do when
|
||||||
a Guile character can't be converted to the port's encoded character
|
a Guile character can't be converted to the port's encoded character
|
||||||
representation for output. There are three possible strategies: to
|
representation for output. There are three possible strategies: to
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue