=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/locale/locale.1,v retrieving revision 1.6 retrieving revision 1.7 diff -c -r1.6 -r1.7 *** src/usr.bin/locale/locale.1 2016/10/24 13:27:06 1.6 --- src/usr.bin/locale/locale.1 2016/10/26 01:00:27 1.7 *************** *** 1,4 **** ! .\" $OpenBSD: locale.1,v 1.6 2016/10/24 13:27:06 schwarze Exp $ .\" .\" Copyright 2016 Ingo Schwarze .\" Copyright 2013 Stefan Sperling --- 1,4 ---- ! .\" $OpenBSD: locale.1,v 1.7 2016/10/26 01:00:27 schwarze Exp $ .\" .\" Copyright 2016 Ingo Schwarze .\" Copyright 2013 Stefan Sperling *************** *** 15,21 **** .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" ! .Dd $Mdocdate: October 24 2016 $ .Dt LOCALE 1 .Os .Sh NAME --- 15,21 ---- .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" ! .Dd $Mdocdate: October 26 2016 $ .Dt LOCALE 1 .Os .Sh NAME *************** *** 25,39 **** .Nm locale .Op Fl a | Fl m .Sh DESCRIPTION - A locale is a set of environment variables telling programs which - character encoding, language and cultural conventions the user - prefers. - The only non-default setting recommended for - .Ox - is: - .Pp - .Dl export LC_CTYPE=en_US.UTF-8 - .Pp If the .Nm utility is invoked without any arguments, the current locale --- 25,30 ---- *************** *** 50,58 **** this always returns UTF-8 only. .El .Pp Programs in the .Ox ! base system ignore the locale except for the character encoding. Programs installed from .Xr packages 7 may or may not change behavior according to the locale. --- 41,57 ---- this always returns UTF-8 only. .El .Pp + A locale is a set of environment variables telling programs which + character encoding, language and cultural conventions the user + prefers. Programs in the .Ox ! base system ignore the locale except for the character encoding, ! and it is not recommended to use any of these variables except that ! the following non-default setting is supported as an option: ! .Pp ! .Dl export LC_CTYPE=en_US.UTF-8 ! .Pp Programs installed from .Xr packages 7 may or may not change behavior according to the locale. *************** *** 86,97 **** .Li LC_CTYPE=C selects the US-ASCII character set and encoding, treating the bytes 0x80 to 0xff as non-printable characters of application-specific ! meaning, whereas ! .Li LC_CTYPE=en_US.UTF-8 ! selects the UTF-8 encoding of the Unicode character set. .Li LC_CTYPE=POSIX is an alias for .Li LC_CTYPE=C . .Pp If the value of .Ev LC_CTYPE --- 85,99 ---- .Li LC_CTYPE=C selects the US-ASCII character set and encoding, treating the bytes 0x80 to 0xff as non-printable characters of application-specific ! meaning. .Li LC_CTYPE=POSIX is an alias for .Li LC_CTYPE=C . + The alternative of + .Li LC_CTYPE=en_US.UTF-8 + selects the UTF-8 encoding of the Unicode character set, which is + supported by many parts of the system, but not yet fully supported + by all parts. .Pp If the value of .Ev LC_CTYPE