Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Mar 1998 20:28:30 +0100 (CET)
From:      dag-erli@ifi.uio.no
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   conf/6145: /etc/profile does not set locale correctly (fix provided)
Message-ID:  <199803271928.UAA23606@saers.com>

next in thread | raw e-mail | index | archive | help

>Number:         6145
>Category:       conf
>Synopsis:       /etc/profile does not set locale correctly (fix provided)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 27 11:30:01 PST 1998
>Last-Modified:
>Originator:     Dag-Erling Smørgrav
>Organization:
University of Oslo, Department of Informatics
>Release:        FreeBSD 2.2.6-STABLE i386
>Environment:

FreeBSD 2.2.xR (all versions of FreeBSD as far as I can remember -
that is, since 2.2.1 and probably also 2.1.5/2.1.6), 2.2-STABLE and
probably 3.0-CURRENT as well. Verified on 2.2.2R 2.2.5-STABLE of early
February and 2.2.6-STABLE of yesterday (26/03/1998).

>Description:

Instructions in /etc/profile for setting the locale do not mention the
LC_* environment variables used by the C library to define the
behaviour of string collation routines, date/time/currency formats
etc. Following the instructions given will not make a significant
difference in the behaviour of any application I am aware of.

See also the thread in freebsd-stable with the subject line
"Setting the correct locale (was: Fxtv no longer works for me.)"

>How-To-Repeat:

Set LANG and MM_CHARSET as described in /etc/profile. Start GNU Emacs
under X. It will complain that the current locale is unsupported by
the C library.

>Fix:

Apply the following patch to /usr/src/etc/profile:
	
--- profile.orig        Fri Mar 27 20:11:04 1998
+++ profile     Fri Mar 27 20:13:53 1998
@@ -2,13 +2,17 @@
 # Uncomment this to give you the default 4.2 behavior, where disk 
 # information is shown in K-Blocks
 # BLOCKSIZE=K; export BLOCKSIZE
-# Uncomment next two lines to activate Russian locale
+# Uncomment next three lines to activate Russian locale
 # LANG=ru_RU.KOI8-R; export LANG
 # MM_CHARSET=KOI8-R; export MM_CHARSET
-# Uncomment next two lines to activate Italian locale
+# LC_ALL=ru_RU.KOI8-R; export LC_ALL
+# Uncomment next three lines to activate Italian locale
 # LANG=it_IT.ISO_8859-1; export LANG
 # MM_CHARSET=ISO-8859-1; export MM_CHARSET
+# LC_ALL=it_IT.ISO_8859-1; export LC_ALL
 # For full locales list check /usr/share/locale/*
+# You should also read the setlocale(3) man page for information
+# on how to achieve more precise control of locale settings.
 # Read system messages
 # msgs -f
 # Allow terminal messages

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803271928.UAA23606>