From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.bugs Subject: bug#7233: 24.0.50; language-environments interact badly with LANG settings Date: Mon, 18 Oct 2010 07:51:54 +0900 Message-ID: <8739s41lh1.fsf@catnip.gol.com> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1287357167 19788 80.91.229.12 (17 Oct 2010 23:12:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 17 Oct 2010 23:12:47 +0000 (UTC) To: 7233@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 18 01:12:45 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P7cPA-0001TZ-Eh for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Oct 2010 01:12:40 +0200 Original-Received: from localhost ([127.0.0.1]:59234 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P7cP9-0001Eu-OQ for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Oct 2010 19:12:39 -0400 Original-Received: from [140.186.70.92] (port=41919 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P7cP0-0001EF-Br for bug-gnu-emacs@gnu.org; Sun, 17 Oct 2010 19:12:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P7cOy-00042Z-DT for bug-gnu-emacs@gnu.org; Sun, 17 Oct 2010 19:12:30 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33521) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P7cOy-00042R-Br for bug-gnu-emacs@gnu.org; Sun, 17 Oct 2010 19:12:28 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1P7c2I-0008CL-IS; Sun, 17 Oct 2010 18:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Miles Bader Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Oct 2010 22:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7233 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.128735570331500 (code B ref -1); Sun, 17 Oct 2010 22:49:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Oct 2010 22:48:23 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P7c1e-0008C1-Ax for submit@debbugs.gnu.org; Sun, 17 Oct 2010 18:48:22 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P7c1c-0008Bv-SY for submit@debbugs.gnu.org; Sun, 17 Oct 2010 18:48:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P7c5B-0000ou-CV for submit@debbugs.gnu.org; Sun, 17 Oct 2010 18:52:02 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:43094) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P7c5B-0000op-93 for submit@debbugs.gnu.org; Sun, 17 Oct 2010 18:52:01 -0400 Original-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@gnu.org; Sun, 17 Oct 2010 18:52:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P7c58-0000oD-BY for bug-gnu-emacs@gnu.org; Sun, 17 Oct 2010 18:51:59 -0400 Original-Received: from smtp12.dentaku.gol.com ([203.216.5.74]:41560) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P7c58-0000ns-3z; Sun, 17 Oct 2010 18:51:58 -0400 Original-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 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 326D5DF8E; Mon, 18 Oct 2010 07:51:55 +0900 (JST) System-Type: x86_64-unknown-linux-gnu Original-Lines: 123 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 17 Oct 2010 18:49:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40939 Archived-At: 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 C-x n C-x C-v / t m p C-x p C-x 1 C-x g C-h v M-p d e f a SPC 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 g x c u s t o m i z e - t h e SPC C-v C-n C-n C-n C-p C-a C-x d g C-x s C-x k x r e p o r t SPC e m 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'