From unknown Sun Jun 22 22:44:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7233: 24.0.50; language-environments interact badly with LANG settings 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: To: 7233@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Reply-To: Miles Bader Received: via spool by submit@debbugs.gnu.org id=B.128735570331500 (code B ref -1); Sun, 17 Oct 2010 22:49:02 +0000 Received: (at submit) by debbugs.gnu.org; 17 Oct 2010 22:48:23 +0000 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 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 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 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 ) id 1P7c5B-0000op-93 for submit@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@gnu.org; Sun, 17 Oct 2010 18:52:01 -0400 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 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 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 System-Type: x86_64-unknown-linux-gnu Date: Mon, 18 Oct 2010 07:51:54 +0900 Message-ID: <8739s41lh1.fsf@catnip.gol.com> Lines: 123 MIME-Version: 1.0 Content-Type: text/plain 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-Spam-Score: -6.0 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@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 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' From unknown Sun Jun 22 22:44:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7233: 24.0.50; language-environments interact badly with LANG settings Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Dec 2020 16:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7233 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Miles Bader Cc: 7233@debbugs.gnu.org Received: via spool by 7233-submit@debbugs.gnu.org id=B7233.16074454988770 (code B ref 7233); Tue, 08 Dec 2020 16:39:01 +0000 Received: (at 7233) by debbugs.gnu.org; 8 Dec 2020 16:38:18 +0000 Received: from localhost ([127.0.0.1]:59364 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmg0I-0002HO-9z for submit@debbugs.gnu.org; Tue, 08 Dec 2020 11:38:18 -0500 Received: from quimby.gnus.org ([95.216.78.240]:53364) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmg0G-0002H5-EA for 7233@debbugs.gnu.org; Tue, 08 Dec 2020 11:38:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=gNUIllK+DFbi2DQdyqtk6q8NJFv3Ww/oemlugCTufzY=; b=r88902njXUAtZRjHRQ7LsegALG 788R9r9Fxwy/nnE3/u8W4rrAm5Vr+18NryW7bc27DYaGZ88k1Tx1PrB5vtDQE4L7zqcr7PWYCjmjc G/bOKarC+PD4k0TRGqa0/8mwt4TdSU9xBpILWwlRnl6s5i8ZyPcC0nHLH+ABLYzR6An8=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kmg07-0004kT-Gg; Tue, 08 Dec 2020 17:38:10 +0100 From: Lars Ingebrigtsen References: <8739s41lh1.fsf@catnip.gol.com> X-Now-Playing: =?UTF-8?Q?R=C3=B3isin?= Murphy's =?UTF-8?Q?=5FR=C3=B3isin?= Machine_: "Game Changer" Date: Tue, 08 Dec 2020 17:38:06 +0100 In-Reply-To: <8739s41lh1.fsf@catnip.gol.com> (Miles Bader's message of "Mon, 18 Oct 2010 07:51:54 +0900") Message-ID: <87a6uofe35.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Miles Bader writes: > 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 [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Miles Bader writes: > 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. (This bug report unfortunately got no response at the time.) I think Emacs always (usually?) have in-Lisp settings override ones from the environment? I think anything else would be pretty surprising -- you should be able to call `current-language-environment' and have that happen immediately, no matter what some environment variable said when you started up Emacs? So I think this works as designed, and I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 08 11:38:24 2020 Received: (at control) by debbugs.gnu.org; 8 Dec 2020 16:38:24 +0000 Received: from localhost ([127.0.0.1]:59367 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmg0O-0002Hj-Hn for submit@debbugs.gnu.org; Tue, 08 Dec 2020 11:38:24 -0500 Received: from quimby.gnus.org ([95.216.78.240]:53378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmg0M-0002HM-HQ for control@debbugs.gnu.org; Tue, 08 Dec 2020 11:38:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Wfh9y+H40CqQ3R/H13OPpeVmZmPp4abjJJIUUflJHkA=; b=sprs6v8FGmRKmA9rAjJMDkYNgn PqbbiGtYC7/DT5y5DyysVvpxUp4OoYG350lg/QTfxXJf/Xd+A/geTPc52iZ2uW845Kf5tb5uC5uUQ YrqYjt3DALs60QMISEhj9bJGGfeS+705/Dw442uqyufyJoDJDk293PH2tUZCBhaRMxxQ=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kmg0E-0004kc-Sl for control@debbugs.gnu.org; Tue, 08 Dec 2020 17:38:16 +0100 Date: Tue, 08 Dec 2020 17:38:13 +0100 Message-Id: <878sa8fe2y.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #7233 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 7233 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 7233 quit