GNU bug report logs - #7233
24.0.50; language-environments interact badly with LANG settings

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Miles Bader <miles@HIDDEN>; dated Sun, 17 Oct 2010 22:49:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 17 Oct 2010 22:48:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 17 18:48:23 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1P7c1e-0008C1-Ax
	for submit <at> debbugs.gnu.org; Sun, 17 Oct 2010 18:48:22 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <miles@HIDDEN>) id 1P7c1c-0008Bv-SY
	for submit <at> debbugs.gnu.org; Sun, 17 Oct 2010 18:48:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <miles@HIDDEN>) id 1P7c5B-0000ou-CV
	for submit <at> debbugs.gnu.org; Sun, 17 Oct 2010 18:52:02 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW
	autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([199.232.76.165]:43094)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <miles@HIDDEN>) id 1P7c5B-0000op-93
	for submit <at> debbugs.gnu.org; Sun, 17 Oct 2010 18:52:01 -0400
Received: from [140.186.70.92] (port=51014 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1P7c59-0002lY-SX
	for bug-gnu-emacs@HIDDEN; Sun, 17 Oct 2010 18:52:01 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <miles@HIDDEN>) id 1P7c58-0000oD-BY
	for bug-gnu-emacs@HIDDEN; Sun, 17 Oct 2010 18:51:59 -0400
Received: from smtp12.dentaku.gol.com ([203.216.5.74]:41560)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <miles@HIDDEN>)
	id 1P7c58-0000ns-3z; Sun, 17 Oct 2010 18:51:58 -0400
Received: from 218.231.154.125.eo.eaccess.ne.jp ([218.231.154.125]
	helo=catnip.gol.com) by smtp12.dentaku.gol.com with esmtpa (Dentaku)
	id 1P7c56-0001hT-9Y; Mon, 18 Oct 2010 07:51:56 +0900
Received: by catnip.gol.com (Postfix, from userid 1000)
	id 326D5DF8E; Mon, 18 Oct 2010 07:51:55 +0900 (JST)
From: Miles Bader <miles@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.0.50; language-environments interact badly with LANG settings
System-Type: x86_64-unknown-linux-gnu
Date: Mon, 18 Oct 2010 07:51:54 +0900
Message-ID: <8739s41lh1.fsf@HIDDEN>
Lines: 123
MIME-Version: 1.0
Content-Type: text/plain
X-Virus-Scanned: ClamAV GOL (outbound)
X-Abuse-Complaints: abuse@HIDDEN
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older,
	4)
X-Spam-Score: -6.0 (------)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
Reply-To: Miles Bader <miles@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.1 (------)

If you have an environment-specified language setting like LANG; for
instance if you start Emacs by doing:

   LANG=ja_JP.UTF-8  emacs

but you _also_ have a customized language environment, e.g., your .emacs
file does:

   (custom-set-variables
    '(current-language-environment "Japanese"))

... then the latter overrides the former, even when it probably
shouldn't.  In particular, it overrides the default coding, specifically
`default-file-name-coding-system', although the latter is exactly what
the coding portion of LANG seems intended to specify.

[In the case of the Japanese language environment, the customization
above changes `default-file-name-coding-system' to be
`japanese-iso-8bit', and also I wonder how useful that is as a default
-- at least around here, the coding systems that seem to be used for
encoding file names seem to either be UTF-8 (on modernish linu/macos) or
Shift-JIS (windows).]

BTW, I didn't notice this before because I have a line in my .emacs that
does (prefer-coding-system 'utf-8) after loading my customizations --
however, "M-x customize-themes" seems to _re-evaluate_ all of one's
customizations, which trashed my fix... maybe that's a separate bug??

Thanks,

-Miles



In GNU Emacs 24.0.50.8 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1)
 of 2010-10-18 on catnip
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ja_JP.UTF-8
  value of $XMODIFIERS: @im=SCIM
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Dired by date

Minor modes in effect:
  rcirc-track-minor-mode: t
  minibuffer-electric-default-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
C-h v f i l e - n a m SPC c o SPC <return> C-x n <tab> 
<tab> <return> C-x C-v / t m p <return> C-x p C-x 1 
C-x g C-h v M-p d e f a SPC <return> C-x 1 C-v C-n 
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n 
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-x 
C-v / t m p <return> g <escape> x c u s t o m i z e 
- t h e SPC <return> C-v C-n C-n C-n C-p C-a <return> 
C-x d g C-x s C-x k <return> <escape> x r e p o r t 
SPC e m <backspace> <backspace> <return>

Recent messages:
Checking new news...
Opening nntp server on news.individual.net...done
Reading active file via nnml...done
Opening nntp server on news.gmane.org...done
Reading active file via nndraft...done
Checking new news...done
Type C-x 1 to delete the help window.
Starting new Ispell process [default] ...
Parsing /home/miles/.mailrc... done
Scanning for dabbrevs...100%

Load-path shadows:
/usr/share/emacs23/site-lisp/magit hides /usr/share/emacs/site-lisp/magit
/usr/share/emacs23/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup

Features:
(shadow sort dabbrev emacsbug mail-extr face-remap flyspell ispell
warnings my-mode-line-theme cus-edit gnus-topic parse-time byte-opt
bytecomp byte-compile nnml auth-source netrc gnus-delay gnus-draft
gnus-agent gnus-srvr gnus-score score-mode nnvirtual nntp gnus-cache
gnus-msg gnus-art mm-uu mml2015 epg-config mm-view smime password-cache
dig mailcap gnus-sum gnus-group gnus-undo nndraft nnmh nnoo nnmail
mail-source format-spec gnus-start gnus-spec gnus-int gnus-range
gnus-win dired pp help-mode view lua-mode-autoloads package reporter
server uniquify rcirc time-date ring minibuf-eldef gnus gnus-ems
nnheader gnus-util wid-edit cus-start cus-load derived advice help-fns
advice-preload easy-mmode message sendmail regexp-opt rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils
gmm-utils mailheader japan-util tooltip ediff-hook vc-hooks
lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe
lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
loaddefs button minibuffer faces cus-face files text-properties overlay
md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind
dynamic-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty emacs)

-- 
`Life is a boundless sea of bitterness'




Acknowledgement sent to Miles Bader <miles@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7233; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.