summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/utf2.5
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2002-10-10 22:56:18 +0000
committertjr <tjr@FreeBSD.org>2002-10-10 22:56:18 +0000
commitd62abf19a31226cab0b997316f5d332a67f9c6b8 (patch)
tree818571da6c27befa8ace080e6465f3a6668ac52e /lib/libc/locale/utf2.5
parentc6135e53fb158af2985432f68c7a060590faf606 (diff)
downloadFreeBSD-src-d62abf19a31226cab0b997316f5d332a67f9c6b8.zip
FreeBSD-src-d62abf19a31226cab0b997316f5d332a67f9c6b8.tar.gz
Add a UTF-8 encoding method, which will eventually replace the antique
"UTF2" method. Although UTF-8 and the old UTF2 encoding are compatible for 16-bit characters, the new UTF-8 implementation is much more strict about rejecting malformed input and also handles the full 31 bit range of characters.
Diffstat (limited to 'lib/libc/locale/utf2.5')
-rw-r--r--lib/libc/locale/utf2.510
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/libc/locale/utf2.5 b/lib/libc/locale/utf2.5
index 35eb3ad..f41c0f9 100644
--- a/lib/libc/locale/utf2.5
+++ b/lib/libc/locale/utf2.5
@@ -35,7 +35,7 @@
.\" @(#)utf2.4 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd June 4, 1993
+.Dd October 11, 2002
.Dt UTF2 4
.Os
.Sh NAME
@@ -45,6 +45,11 @@
.Nm ENCODING
.Qq UTF2
.Sh DESCRIPTION
+.Bf Em
+The UTF2 encoding has been deprecated in favour of UTF-8.
+.Ef
+New applications should not use UTF2.
+.Pp
The
.Nm UTF2
encoding is based on a proposed X-Open multibyte
@@ -85,4 +90,5 @@ which provides for the entire proposed ISO-10646 31 bit standard are currently
not implemented.
.Sh "SEE ALSO"
.Xr mklocale 1 ,
-.Xr setlocale 3
+.Xr setlocale 3 ,
+.Xr utf8 5
OpenPOWER on IntegriCloud