diff options
Diffstat (limited to 'lib/libc/locale')
-rw-r--r-- | lib/libc/locale/rune.3 | 3 | ||||
-rw-r--r-- | lib/libc/locale/setlocale.3 | 3 | ||||
-rw-r--r-- | lib/libc/locale/utf2.5 | 6 |
3 files changed, 8 insertions, 4 deletions
diff --git a/lib/libc/locale/rune.3 b/lib/libc/locale/rune.3 index d3c8b3eaf81d..debb26e42b8c 100644 --- a/lib/libc/locale/rune.3 +++ b/lib/libc/locale/rune.3 @@ -191,7 +191,8 @@ function operates the same as .Fn sgetrune with the exception that it attempts to read enough bytes from .Fa stream -to decode a single rune. It returns either +to decode a single rune. +It returns either .Dv EOF on end of file, .Dv _INVALID_RUNE diff --git a/lib/libc/locale/setlocale.3 b/lib/libc/locale/setlocale.3 index 7e4ff851dc32..278e18d50d1e 100644 --- a/lib/libc/locale/setlocale.3 +++ b/lib/libc/locale/setlocale.3 @@ -81,7 +81,8 @@ and functions. This controls recognition of upper and lower case, alphabetic or non-alphabetic characters, -and so on. The real work is done by the +and so on. +The real work is done by the .Fn setrunelocale function. .It Dv LC_MESSAGES diff --git a/lib/libc/locale/utf2.5 b/lib/libc/locale/utf2.5 index a5a18659c002..e41cad860402 100644 --- a/lib/libc/locale/utf2.5 +++ b/lib/libc/locale/utf2.5 @@ -61,9 +61,11 @@ Unicode Standard. .Pp .Nm UTF2 representation is backwards compatible with ASCII, so 0x00-0x7f refer to the -ASCII character set. The multibyte encodings of wide characters between +ASCII character set. +The multibyte encodings of wide characters between 0x0080 and 0xffff -consist entirely of bytes whose high order bit is set. The actual +consist entirely of bytes whose high order bit is set. +The actual encoding is represented by the following table: .Bd -literal [0x0000 - 0x007f] [00000000.0bbbbbbb] -> 0bbbbbbb |