From unknown Mon Aug 18 14:25:26 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#15402 <15402@debbugs.gnu.org> To: bug#15402 <15402@debbugs.gnu.org> Subject: Status: 24.3; Emacs and Mac OS Dock bad launch behavior Reply-To: bug#15402 <15402@debbugs.gnu.org> Date: Mon, 18 Aug 2025 21:25:26 +0000 retitle 15402 24.3; Emacs and Mac OS Dock bad launch behavior reassign 15402 emacs,ns submitter 15402 Constantine Vetoshev severity 15402 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 17 11:20:47 2013 Received: (at submit) by debbugs.gnu.org; 17 Sep 2013 15:20:47 +0000 Received: from localhost ([127.0.0.1]:44223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VLx53-0007sq-C2 for submit@debbugs.gnu.org; Tue, 17 Sep 2013 11:20:46 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50455) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VLqba-0004Mz-6x for submit@debbugs.gnu.org; Tue, 17 Sep 2013 04:25:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLqbM-0004uE-Mq for submit@debbugs.gnu.org; Tue, 17 Sep 2013 04:25:49 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55271) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLqbM-0004uA-Gy for submit@debbugs.gnu.org; Tue, 17 Sep 2013 04:25:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLqbD-0003yf-VW for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2013 04:25:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLqb5-0004qb-Hp for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2013 04:25:31 -0400 Received: from mail-pa0-x232.google.com ([2607:f8b0:400e:c03::232]:43424) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLqb5-0004qQ-9w for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2013 04:25:23 -0400 Received: by mail-pa0-f50.google.com with SMTP id fb10so6439732pad.23 for ; Tue, 17 Sep 2013 01:25:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:date:subject:to:message-id:mime-version; bh=Fp68CRUe6aSbK4xfIFpMQMLCxr0UUUMzoYZEUKdL5jg=; b=WJB/y3ms5sWpEllM4LZ6MrBfx5v2jMAEkEfAhOpTuozcevKQYFJPBajzyHfIp4IY4T /c42Q4oSqNEWIAhDrWfZgk9igpx4nq3X4JYxZUZH16mRhboA8GemVgo+byQOJFm9whfE BGHdhCes/Np3fTBqqeKCGsxla7lu+KgDvWLs2P0/17vSoDqWBDB7E1s1D244bxgFuHo2 YfZiUo9Dmg/SmzJW9CQi8DXsgGzK1gOFNyRVzFrlKKtfEm0lP74cRUOxuTpHceU9hn/O lqUijSe07KUcXPYZK681GYKXtYBaPrJzI3GNi5AYOUOISCZxo5PFEaXMlO/rtPV9Sxd9 YV5Q== X-Received: by 10.68.200.34 with SMTP id jp2mr33217967pbc.53.1379406321712; Tue, 17 Sep 2013 01:25:21 -0700 (PDT) Received: from [192.168.1.101] (c-76-126-148-240.hsd1.ca.comcast.net. [76.126.148.240]) by mx.google.com with ESMTPSA id h2sm7541843pbj.38.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Sep 2013 01:25:20 -0700 (PDT) From: Constantine Vetoshev Content-Type: multipart/mixed; boundary="Apple-Mail=_1C576747-1819-4D34-B394-0C661879B4B3" Date: Tue, 17 Sep 2013 01:25:18 -0700 Subject: 24.3; Emacs and Mac OS Dock bad launch behavior To: bug-gnu-emacs@gnu.org Message-Id: <10088A94-BDA2-4B86-96EF-A1DE03E38737@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) X-Mailer: Apple Mail (2.1508) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 17 Sep 2013 11:20:40 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.0 (----) --Apple-Mail=_1C576747-1819-4D34-B394-0C661879B4B3 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii When Emacs is launched from its icon in the Mac OS Dock, all modes derived from term (such as M-x ansi-term) exhibit strange behavior: printing a long line which contains a Unicode character causes line truncation and generally puts the terminal in a bad state. Resetting the terminal fixes the problem. The problem does NOT occur when Emacs is launched from the command line, i.e., the terminal modes all work correctly if Emacs is invoked by running the following at a (non-Emacs) shell: "/Applications/Emacs.app/Contents/MacOS/Emacs" The problem does not seem to be related to any Emacs initialization code in .emacs or init.el. It occurs consistently when all initialization code is commented out. Attached is a sample file which causes the problem; just save it, launch a shell in ansi-term, and cat the file. In addition, when launched from the Dock, ansi-term requires something like the following to display Unicode characters correctly: (defadvice ansi-term (after advice-ansi-term activate) (set-buffer-process-coding-system 'utf-8-unix 'utf-8-unix)) This is NOT required when launching Emacs from the command line! --Apple-Mail=_1C576747-1819-4D34-B394-0C661879B4B3 Content-Disposition: attachment; filename=test.txt Content-Type: text/plain; name="test.txt" Content-Transfer-Encoding: quoted-printable Started PUT "/projects/1" for 127.0.0.1 at 2013-09-15 14:35:50 -0700 Processing by ProjectsController#update as JS Parameters: {"utf8"=3D>"=E2=9C=93", = "authenticity_token"=3D>"w016h+NdEQac52o0w1o5pq+dQbQkbCh7XtW3SriENXc=3D", = "project"=3D>{"name"=3D>"Wilson lighting upgrade and solar install", = "categories_attributes"=3D>{"0"=3D>{"id"=3D>"275"}, "1"=3D>{"id"=3D>"276"}= , "2"=3D>{"name"=3D>"", "sub_type"=3D>""}}, "status"=3D>"Completed", = "leader_id"=3D>"90", "proposed_cost"=3D>"155500", = "construction_year"=3D>"1988", "approved"=3D>"November 10, 2010", = "start_date"=3D>"November 29, 2010", "complete_date"=3D>"March 1, = 2011", "lifespan"=3D>"10", "resources_attributes"=3D>{"1"=3D>{"name"=3D>""= , "units"=3D>"", "cost_per_unit"=3D>"", "annual_savings"=3D>""}}, = "description"=3D>"We plan on making this green, believe it!", = "methodology"=3D>"Estimated", "methodology_description"=3D>"Here are = some details, does this work for you guys?", = "transactions_attributes"=3D>{"101"=3D>{"id"=3D>"101", "date"=3D>"November= 19, 2010", "transaction_type"=3D>"Project Expenditure", = "description"=3D>"", "amount"=3D>"-80000"}, "102"=3D>{"id"=3D>"102", = "date"=3D>"March 01, 2011", "transaction_type"=3D>"Project Rebate", = "description"=3D>"", "amount"=3D>"5000"}, "365"=3D>{"id"=3D>"365", = "date"=3D>"December 30, 2011", "transaction_type"=3D>"Project Loan = Repayment", "description"=3D>"", "amount"=3D>"17548"}, = "366"=3D>{"id"=3D>"366", "date"=3D>"December 31, 2012", = "transaction_type"=3D>"Project Loan Repayment", "description"=3D>"", = "amount"=3D>"21000"}, "new"=3D>{"id"=3D>"", "date"=3D>"", = "transaction_type"=3D>"", "description"=3D>"", "amount"=3D>""}}}, = "id"=3D>"1"} --Apple-Mail=_1C576747-1819-4D34-B394-0C661879B4B3 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii In GNU Emacs 24.3.1 (x86_64-apple-darwin12.2.0, NS apple-appkit-1187.34) of 2013-03-10 on athena.local Windowing system distributor `Apple', version 10.3.1187 Configured using: `configure '--with-ns'' Important settings: value of $LC_COLLATE: C value of $LC_CTYPE: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t --Apple-Mail=_1C576747-1819-4D34-B394-0C661879B4B3-- From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 17 14:04:51 2013 Received: (at 15402) by debbugs.gnu.org; 17 Sep 2013 18:04:51 +0000 Received: from localhost ([127.0.0.1]:44530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VLzdq-00056n-VM for submit@debbugs.gnu.org; Tue, 17 Sep 2013 14:04:51 -0400 Received: from mail01.bdtv.se ([176.10.222.34]:32905) by debbugs.gnu.org with smtp (Exim 4.80) (envelope-from ) id 1VLzdn-00056b-MB for 15402@debbugs.gnu.org; Tue, 17 Sep 2013 14:04:49 -0400 Received: (qmail 981 invoked by uid 89); 17 Sep 2013 18:04:45 -0000 Received: from h-46-59-42-57.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.57) by mail01.bdtv.se with ESMTPA; 17 Sep 2013 18:04:45 -0000 Received: from [172.20.199.13] (unknown [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id F30AE1A009A; Tue, 17 Sep 2013 18:04:44 +0000 (UTC) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: bug#15402: 24.3; Emacs and Mac OS Dock bad launch behavior From: =?iso-8859-1?Q?Jan_Dj=E4rv?= In-Reply-To: <10088A94-BDA2-4B86-96EF-A1DE03E38737@gmail.com> Date: Tue, 17 Sep 2013 20:04:44 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <10088A94-BDA2-4B86-96EF-A1DE03E38737@gmail.com> To: Constantine Vetoshev X-Mailer: Apple Mail (2.1508) X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 15402 Cc: 15402@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (+) Hello. 17 sep 2013 kl. 10:25 skrev Constantine Vetoshev : > When Emacs is launched from its icon in the Mac OS Dock, all modes > derived from term (such as M-x ansi-term) exhibit strange behavior: > printing a long line which contains a Unicode character causes line > truncation and generally puts the terminal in a bad state. Resetting = the > terminal fixes the problem. By unicode character, I assume you mean non-ASCII? All ASCII characters = are Unicode characters. >=20 > The problem does NOT occur when Emacs is launched from the command > line, i.e., the terminal modes all work correctly if Emacs is invoked = by > running the following at a (non-Emacs) shell: > "/Applications/Emacs.app/Contents/MacOS/Emacs" >=20 > The problem does not seem to be related to any Emacs initialization = code > in .emacs or init.el. It occurs consistently when all initialization > code is commented out. >=20 > Attached is a sample file which causes the problem; just save it, = launch a > shell in ansi-term, and cat the file. >=20 > In addition, when launched from the Dock, ansi-term requires something > like the following to display Unicode characters correctly: >=20 > (defadvice ansi-term (after advice-ansi-term activate) > (set-buffer-process-coding-system 'utf-8-unix 'utf-8-unix)) >=20 > This is NOT required when launching Emacs from the command line! There is a problem here. You don't need to cat your test file to see = the problem, just input a non-ASCII character from the keyboard, for = example =E5. The dock-started Emacs will not show =E5, it will show \345. Jan D. From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 17 14:48:54 2013 Received: (at 15402) by debbugs.gnu.org; 17 Sep 2013 18:48:54 +0000 Received: from localhost ([127.0.0.1]:44634 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VM0KU-0006MX-8r for submit@debbugs.gnu.org; Tue, 17 Sep 2013 14:48:54 -0400 Received: from mail-pd0-f179.google.com ([209.85.192.179]:47115) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VM0KR-0006MF-EX for 15402@debbugs.gnu.org; Tue, 17 Sep 2013 14:48:52 -0400 Received: by mail-pd0-f179.google.com with SMTP id v10so6022146pde.10 for <15402@debbugs.gnu.org>; Tue, 17 Sep 2013 11:48:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=wsBylOExCHmwxtgn3bHdV+uy0KGxNHWiBCmfPxzzSl8=; b=ICKyOyi+31Ox9ZsIS3KCz7BVb3j1Vi82NpLnFgcGrutpmTPxJyu9ZkDa12DoGYE/uJ YWyBle0FLAYo0kHhR99jK5KdvyOsSq8YzJbFuKcSSp3ZTvWIWGRAyfCBSJ9qGj2g89QY iXlcCwt5N2ALFi5Tbz+q7ARaU6lXw+hWIDUURXFcMqELHRwMG04Je43qvvb+gbv/TLZk c6vggAJkGpsQ8pIl5cVNaCGA9+x17BNGV2l5LjhMElSAYy5ROyn5w+JuSSnC+eK1Pjhy ydUSoBpP+z1QklQ4yn9eiZZFqUiJDPfYYuWkyRUa2gC2Lk0t2pTiOuOs9/84vBi9Nz/9 TsPA== X-Received: by 10.66.226.46 with SMTP id rp14mr10499476pac.133.1379443725326; Tue, 17 Sep 2013 11:48:45 -0700 (PDT) Received: from [192.168.1.101] (c-76-126-148-240.hsd1.ca.comcast.net. [76.126.148.240]) by mx.google.com with ESMTPSA id os4sm39912071pbb.25.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Sep 2013 11:48:44 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: bug#15402: 24.3; Emacs and Mac OS Dock bad launch behavior From: Constantine Vetoshev In-Reply-To: Date: Tue, 17 Sep 2013 11:48:42 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <10088A94-BDA2-4B86-96EF-A1DE03E38737@gmail.com> To: =?utf-8?Q?Jan_Dj=C3=A4rv?= X-Mailer: Apple Mail (2.1508) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 15402 Cc: 15402@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: 0.0 (/) Hi Jan. On Sep 17, 2013, at 11:04, Jan Dj=C3=A4rv wrote: > Hello. >=20 > 17 sep 2013 kl. 10:25 skrev Constantine Vetoshev : > When Emacs is launched from its icon in the Mac OS Dock, all modes >> derived from term (such as M-x ansi-term) exhibit strange behavior: >> printing a long line which contains a Unicode character causes line >> truncation and generally puts the terminal in a bad state. Resetting = the >> terminal fixes the problem. >=20 > By unicode character, I assume you mean non-ASCII? All ASCII = characters are Unicode characters. Yes, I mean non-ASCII. I have specifically experienced the problem with = the check-mark character, =E2=9C=93, and the em-dash, =E2=80=94. > There is a problem here. You don't need to cat your test file to see = the problem, just input a non-ASCII character from the keyboard, for = example =C3=A5. > The dock-started Emacs will not show =C3=A5, it will show \345. You are right, but I discovered the defadvice strangeness while = investigating the problem I found with the test file. They are not quite = the same, and I only guessed that the two are related, since both go = away when I run Emacs from the command line. Let me clarify what I meant by "puts the terminal in a bad state". When = ansi-term prints the contents of the test file, it will happily print = the non-ASCII character (assuming set-buffer-process-coding-system was = called). It will then continue printing characters until it hits the = edge of the Emacs buffer window, print a few more characters (usually = two, they wrap around), not finish printing the entire line, then move = the cursor to the next line, and begins printing the rest of the output = on that next line. It completely stops moving the cursor down to the = next line. If I try typing in new shell commands, their output is all = collapsed into the same line. I was very surprised that just launching Emacs from the command line = makes the problem go away. I don't know if the incorrect encoding setup = for Dock-launched Emacs is related to this term emulation problem, but = they both seem related to encoding setup. Thanks, Constantine= From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 18 13:24:53 2013 Received: (at 15402) by debbugs.gnu.org; 18 Sep 2013 17:24:53 +0000 Received: from localhost ([127.0.0.1]:47077 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VMLUf-0001gW-Sf for submit@debbugs.gnu.org; Wed, 18 Sep 2013 13:24:52 -0400 Received: from pruche.dit.umontreal.ca ([132.204.246.22]:35572) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VMLUe-0001gO-4q for 15402@debbugs.gnu.org; Wed, 18 Sep 2013 13:24:48 -0400 Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r8IHOlIp032477; Wed, 18 Sep 2013 13:24:47 -0400 Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 5750FB40D3; Wed, 18 Sep 2013 13:24:47 -0400 (EDT) From: Stefan Monnier To: Constantine Vetoshev Subject: Re: bug#15402: 24.3; Emacs and Mac OS Dock bad launch behavior Message-ID: References: <10088A94-BDA2-4B86-96EF-A1DE03E38737@gmail.com> Date: Wed, 18 Sep 2013 13:24:47 -0400 In-Reply-To: <10088A94-BDA2-4B86-96EF-A1DE03E38737@gmail.com> (Constantine Vetoshev's message of "Tue, 17 Sep 2013 01:25:18 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 15402 Cc: 15402@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -2.0 (--) > This is NOT required when launching Emacs from the command line! Typically, the difference between the two is that running Emacs from the command line runs it with environment variables set by your shell's init scripts, whereas running it from the GUI does not have those env-vars set. IOW please compare M-: process-environment RET in the two cases, it will probably contain a clue. Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 19 11:54:10 2013 Received: (at 15402) by debbugs.gnu.org; 19 Sep 2013 15:54:10 +0000 Received: from localhost ([127.0.0.1]:49403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VMgYT-000454-EC for submit@debbugs.gnu.org; Thu, 19 Sep 2013 11:54:09 -0400 Received: from mail01.bdtv.se ([176.10.222.34]:50241) by debbugs.gnu.org with smtp (Exim 4.80) (envelope-from ) id 1VMgYP-00044r-M4 for 15402@debbugs.gnu.org; Thu, 19 Sep 2013 11:54:07 -0400 Received: (qmail 23167 invoked by uid 89); 19 Sep 2013 15:54:03 -0000 Received: from h-46-59-42-57.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.57) by mail01.bdtv.se with ESMTPA; 19 Sep 2013 15:54:03 -0000 Received: from [172.20.199.13] (unknown [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 3EEDE1A00FB; Thu, 19 Sep 2013 15:54:03 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: bug#15402: 24.3; Emacs and Mac OS Dock bad launch behavior From: =?iso-8859-1?Q?Jan_Dj=E4rv?= In-Reply-To: Date: Thu, 19 Sep 2013 17:54:02 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <10088A94-BDA2-4B86-96EF-A1DE03E38737@gmail.com> To: Stefan Monnier X-Mailer: Apple Mail (2.1510) X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 15402 Cc: 15402@debbugs.gnu.org, Constantine Vetoshev X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (+) Hello. 18 sep 2013 kl. 19:24 skrev Stefan Monnier : >> This is NOT required when launching Emacs from the command line! >=20 > Typically, the difference between the two is that running Emacs from = the > command line runs it with environment variables set by your shell's = init > scripts, whereas running it from the GUI does not have those > env-vars set. >=20 > IOW please compare M-: process-environment RET in the two cases, it = will > probably contain a clue. >=20 I already checked, LANG is needed to be set properly in the environment, = and it isn't when laucnhng from dock. M-x setenv doesn't help, as it = really doesn't setenv anything (should be renamed IMHO). So see launchd.conf and launchctl (setenv) on how to add to the = environment of programs launched from dock. Jan D. From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 19 15:25:17 2013 Received: (at 15402) by debbugs.gnu.org; 19 Sep 2013 19:25:17 +0000 Received: from localhost ([127.0.0.1]:49809 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VMjqm-0001k2-F3 for submit@debbugs.gnu.org; Thu, 19 Sep 2013 15:25:16 -0400 Received: from mail-pd0-f174.google.com ([209.85.192.174]:52152) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VMjqj-0001jo-Ew for 15402@debbugs.gnu.org; Thu, 19 Sep 2013 15:25:14 -0400 Received: by mail-pd0-f174.google.com with SMTP id y13so8797247pdi.19 for <15402@debbugs.gnu.org>; Thu, 19 Sep 2013 12:25:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=7yBBSAlizCPRIsbe3EnU5lbzicMAk40qbJx7uomr3Hs=; b=fo8x1ZEaK8K1LEPX2pvIa5+Kb5HLHMjx0KADs/vbcprUnjUo7TneTJPjgcaQBLR3Dy NPjvjX77FVYWK+7ecasxk9UbLO4UJ1Vf/2IhzvZsBWs2uUGkj1TVdvFyIXSroakZJziL AdLVVA+v00kK2+v3Rudj8Up2McCZQmJTVSiQW/2litzbT3Ghj+JkZwEfwjbsVEiuUjdF JEqlDu0CCIMZfm9L/6ApLD9bUK/byhN7pF6UAf5kGQQWC5gT9OToMpU4TxcuyWp1t5vI BqA6KJ8XYAV8nnPanAkM4Xqb9o1uCxhPI8QPMhHY4mZA9qV6XEYEr+NEPaVm2BWnQ/y+ Ef5g== X-Received: by 10.67.3.34 with SMTP id bt2mr4571683pad.3.1379618707672; Thu, 19 Sep 2013 12:25:07 -0700 (PDT) Received: from [192.168.1.101] (c-76-126-148-240.hsd1.ca.comcast.net. [76.126.148.240]) by mx.google.com with ESMTPSA id ye1sm13942500pab.19.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Sep 2013 12:25:06 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: bug#15402: 24.3; Emacs and Mac OS Dock bad launch behavior From: Constantine Vetoshev In-Reply-To: Date: Thu, 19 Sep 2013 12:25:07 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <570386AE-EE19-49EB-B532-44F7F3705826@gmail.com> References: <10088A94-BDA2-4B86-96EF-A1DE03E38737@gmail.com> To: =?windows-1252?Q?Jan_Dj=E4rv?= , Stefan Monnier X-Mailer: Apple Mail (2.1510) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 15402 Cc: 15402@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: 0.0 (/) On Sep 19, 2013, at 08:54, Jan Dj=E4rv wrote: > I already checked, LANG is needed to be set properly in the = environment, and it isn't when laucnhng from dock. M-x setenv doesn't = help, as it really doesn't setenv anything (should be renamed IMHO). >=20 > So see launchd.conf and launchctl (setenv) on how to add to the = environment of programs launched from dock. Confirmed. That's a really sharp edge, and has symptoms which do not = necessarily suggest this fix. Is a reasonable workaround possible? = Perhaps the Mac port can infer a reasonable default value for LANG on = startup, based on whatever locale information Cocoa provides? Alternatively, Apple documentation says that using LSEnvironment in = Info.plist to set an environment variable should help, but using it to = set LANG does nothing for me. Also, the real reason I submitted this bug report is bad behavior in = term. This bad behavior happens to go away with a properly set LANG, but = my init.el contains all sorts of invocations like: (set-language-environment "UTF-8") (prefer-coding-system 'utf-8) (defadvice multi-term (after cv/multi-term activate) (set-buffer-process-coding-system 'utf-8-unix 'utf-8-unix)) This fixes the basic non-ASCII character display problems (I didn't even = realize Emacs cared that much about LANG), but ansi-term still chokes on = long lines containing non-ASCII characters =97 even though it displays = them correctly. Shouldn't at least one of these settings get term = working correctly, even without a properly-set LANG?= From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 20 03:06:02 2013 Received: (at 15402) by debbugs.gnu.org; 20 Sep 2013 07:06:02 +0000 Received: from localhost ([127.0.0.1]:50624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VMumv-00031f-Ce for submit@debbugs.gnu.org; Fri, 20 Sep 2013 03:06:01 -0400 Received: from mail01.bdtv.se ([176.10.222.34]:54180) by debbugs.gnu.org with smtp (Exim 4.80) (envelope-from ) id 1VMumr-00031T-LG for 15402@debbugs.gnu.org; Fri, 20 Sep 2013 03:05:58 -0400 Received: (qmail 3647 invoked by uid 89); 20 Sep 2013 07:05:56 -0000 Received: from h-46-59-42-57.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.57) by mail01.bdtv.se with ESMTPA; 20 Sep 2013 07:05:56 -0000 Received: from [172.20.199.13] (unknown [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id DF47E1A010E; Fri, 20 Sep 2013 07:05:55 +0000 (UTC) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: bug#15402: 24.3; Emacs and Mac OS Dock bad launch behavior From: =?windows-1252?Q?Jan_Dj=E4rv?= In-Reply-To: <570386AE-EE19-49EB-B532-44F7F3705826@gmail.com> Date: Fri, 20 Sep 2013 09:05:55 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <10088A94-BDA2-4B86-96EF-A1DE03E38737@gmail.com> <570386AE-EE19-49EB-B532-44F7F3705826@gmail.com> To: Constantine Vetoshev X-Mailer: Apple Mail (2.1510) X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 15402 Cc: 15402@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (+) Hello. 19 sep 2013 kl. 21:25 skrev Constantine Vetoshev : > Also, the real reason I submitted this bug report is bad behavior in = term. This bad behavior happens to go away with a properly set LANG, but = my init.el contains all sorts of invocations like: >=20 > (set-language-environment "UTF-8") > (prefer-coding-system 'utf-8) > (defadvice multi-term (after cv/multi-term activate) > (set-buffer-process-coding-system 'utf-8-unix 'utf-8-unix)) >=20 > This fixes the basic non-ASCII character display problems (I didn't = even realize Emacs cared that much about LANG), but ansi-term still = chokes on long lines containing non-ASCII characters =97 even though it = displays them correctly. Shouldn't at least one of these settings get = term working correctly, even without a properly-set LANG? I agree that some of these settings should be taken into account. Don't = know which though. Maybe we should set utf-8-unix as default on OSX if LANG is not set?=20 FWIW M-x shell behaves correctly for me. Jan D. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 20 03:58:09 2013 Received: (at 15402) by debbugs.gnu.org; 20 Sep 2013 07:58:09 +0000 Received: from localhost ([127.0.0.1]:50631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VMvbM-0004Ht-IG for submit@debbugs.gnu.org; Fri, 20 Sep 2013 03:58:08 -0400 Received: from mail-pb0-f49.google.com ([209.85.160.49]:58691) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VMvbK-0004HO-2L for 15402@debbugs.gnu.org; Fri, 20 Sep 2013 03:58:06 -0400 Received: by mail-pb0-f49.google.com with SMTP id xb4so90813pbc.36 for <15402@debbugs.gnu.org>; Fri, 20 Sep 2013 00:58:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=YG2RwmA6G9LyjcOxMefLTYA2HsuSVw0YTNR/kdkX8FI=; b=FvbtzoQqfnQpwFTuKv8GapEOSX2Kzxsis9+uH4fPSmrso7FuXOGxXKJK59nsjBEy5e vjF9uFzMMH5pAVwA2rX0724aTjWqdcQxQ5zi9wtt14VzeClGwYaIEbouoWnEEL7hGaCA DRfrEV8Z/FjTJfcIheYFhM37iSSlfaNgUwaQliCHi0SW9QXluB28x76+191ynCvsZUyy XJmGvfxx3H//Ll/ZO04rzwwORRiuxpSYWzkCJ3quw3RRRbrMRmTfiIreN65PbxSPfrva cRUHxfmzEmicpu2UtA4zV+M/mBbdFI00d+iO2dkc/wc/0W9LQXibjU4oz4uG32OW4V9W Cblg== X-Received: by 10.68.202.38 with SMTP id kf6mr6486387pbc.43.1379663880186; Fri, 20 Sep 2013 00:58:00 -0700 (PDT) Received: from [192.168.1.101] (c-76-126-148-240.hsd1.ca.comcast.net. [76.126.148.240]) by mx.google.com with ESMTPSA id py4sm14043464pbb.33.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 20 Sep 2013 00:57:59 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: bug#15402: 24.3; Emacs and Mac OS Dock bad launch behavior From: Constantine Vetoshev In-Reply-To: Date: Fri, 20 Sep 2013 00:57:46 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <05EB12CB-BD6F-40DB-A4D0-20990EC305B3@gmail.com> References: <10088A94-BDA2-4B86-96EF-A1DE03E38737@gmail.com> <570386AE-EE19-49EB-B532-44F7F3705826@gmail.com> To: =?windows-1252?Q?Jan_Dj=E4rv?= X-Mailer: Apple Mail (2.1510) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 15402 Cc: 15402@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -0.7 (/) On Sep 20, 2013, at 00:05, Jan Dj=E4rv wrote: > I agree that some of these settings should be taken into account. = Don't know which though. > Maybe we should set utf-8-unix as default on OSX if LANG is not set?=20= > FWIW M-x shell behaves correctly for me. M-x shell does not use term.el, and it doesn't attempt to emulate a real = terminal. It stands to reason that it would behave completely = differently. I can't really avoid emulating the terminal for my use = case. Did you reproduce the ansi-term line handling bug I explained, with the = sample file I attached? The main problem is that it does not go away = with any of the Emacs-specific utf-8-unix settings. It only goes away = with a correctly-set LANG. We might be able to suggest a default LANG when it's not available (is = that what you meant?), but is there a valid non-locale-specific value = for it we can use? Mine is set to "en_US.UTF-8", and I thought LANG = requires a locale prefix. We obviously shouldn't just default to the = en_US locale. CV= From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 20 05:21:12 2013 Received: (at 15402) by debbugs.gnu.org; 20 Sep 2013 09:21:13 +0000 Received: from localhost ([127.0.0.1]:50682 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VMwtk-0006Jp-JL for submit@debbugs.gnu.org; Fri, 20 Sep 2013 05:21:12 -0400 Received: from mail01.bdtv.se ([176.10.222.34]:54969) by debbugs.gnu.org with smtp (Exim 4.80) (envelope-from ) id 1VMwth-0006JZ-Cl for 15402@debbugs.gnu.org; Fri, 20 Sep 2013 05:21:10 -0400 Received: (qmail 12226 invoked by uid 89); 20 Sep 2013 09:21:07 -0000 Received: from h-46-59-42-57.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.57) by mail01.bdtv.se with ESMTPA; 20 Sep 2013 09:21:07 -0000 Received: from [172.20.199.13] (unknown [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id CE5F41A010E; Fri, 20 Sep 2013 09:21:06 +0000 (UTC) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: bug#15402: 24.3; Emacs and Mac OS Dock bad launch behavior From: =?windows-1252?Q?Jan_Dj=E4rv?= In-Reply-To: <05EB12CB-BD6F-40DB-A4D0-20990EC305B3@gmail.com> Date: Fri, 20 Sep 2013 11:21:08 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <10088A94-BDA2-4B86-96EF-A1DE03E38737@gmail.com> <570386AE-EE19-49EB-B532-44F7F3705826@gmail.com> <05EB12CB-BD6F-40DB-A4D0-20990EC305B3@gmail.com> To: Constantine Vetoshev X-Mailer: Apple Mail (2.1510) X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 15402 Cc: 15402@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (+) Hello. 20 sep 2013 kl. 09:57 skrev Constantine Vetoshev : > On Sep 20, 2013, at 00:05, Jan Dj=E4rv wrote: >> I agree that some of these settings should be taken into account. = Don't know which though. >> Maybe we should set utf-8-unix as default on OSX if LANG is not set?=20= >> FWIW M-x shell behaves correctly for me. >=20 >=20 > M-x shell does not use term.el, and it doesn't attempt to emulate a = real terminal. It stands to reason that it would behave completely = differently. I can't really avoid emulating the terminal for my use = case. I see. >=20 > Did you reproduce the ansi-term line handling bug I explained, with = the sample file I attached? Yes. > The main problem is that it does not go away with any of the = Emacs-specific utf-8-unix settings. It only goes away with a = correctly-set LANG. >=20 > We might be able to suggest a default LANG when it's not available (is = that what you meant?), but is there a valid non-locale-specific value = for it we can use? Mine is set to "en_US.UTF-8", and I thought LANG = requires a locale prefix. We obviously shouldn't just default to the = en_US locale. For this case, the language part is not really used, it is the UTF-8 = part that matters. Jan D. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 20 07:25:54 2013 Received: (at 15402) by debbugs.gnu.org; 20 Sep 2013 11:25:54 +0000 Received: from localhost ([127.0.0.1]:50728 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VMyqP-0000vY-V7 for submit@debbugs.gnu.org; Fri, 20 Sep 2013 07:25:54 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:35455) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VMyqN-0000vK-1Q for 15402@debbugs.gnu.org; Fri, 20 Sep 2013 07:25:51 -0400 Received: by mail-pa0-f45.google.com with SMTP id bg4so588893pad.18 for <15402@debbugs.gnu.org>; Fri, 20 Sep 2013 04:25:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Bld9r9UrRGTW+iFRvuMI6QoKw+wvfJGqhNOWcZBXCls=; b=TIUgM8WQb9frofZ5K2huJv34JsQx6HDA/XqvZcGrRNifGnvcHbx1lYrJS1iwc/z9W/ RDhAZBXL+yspfVKh8Rb1bFKQHCkC2O/0V7ePx0vkGy8Dn1Cz/NIMGz4lwm7CMO6UGCTD 1zq/rcIallu9e7wUO3z8QtpBvutV521tljyoDZDCm0Qiv1r5CR4Drm3j3MUW2BTkW4dV 7LS5IsTgE74UJ5Z4FOxfGWpXpFFimFaWEN+45juXB1BDZ18QO+XoFODzjL8qHKsqMrHu vfK4yabLOJGRIE6Cy2tg8QsO9fTMYN4M51uQmNCqFGgHNa/YITEUiI7nIG/hC8mu989o uZ7g== X-Received: by 10.68.252.135 with SMTP id zs7mr2563924pbc.194.1379676344830; Fri, 20 Sep 2013 04:25:44 -0700 (PDT) Received: from [192.168.1.101] (c-76-126-148-240.hsd1.ca.comcast.net. [76.126.148.240]) by mx.google.com with ESMTPSA id xn12sm18437611pac.12.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 20 Sep 2013 04:25:44 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: bug#15402: 24.3; Emacs and Mac OS Dock bad launch behavior From: Constantine Vetoshev In-Reply-To: Date: Fri, 20 Sep 2013 04:25:38 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <9E5738A9-17B5-4F1F-9CC4-7D7FD3F9C83D@gmail.com> References: <10088A94-BDA2-4B86-96EF-A1DE03E38737@gmail.com> <570386AE-EE19-49EB-B532-44F7F3705826@gmail.com> <05EB12CB-BD6F-40DB-A4D0-20990EC305B3@gmail.com> To: =?windows-1252?Q?Jan_Dj=E4rv?= X-Mailer: Apple Mail (2.1510) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 15402 Cc: 15402@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -0.7 (/) On Sep 20, 2013, at 02:21, Jan Dj=E4rv wrote: > For this case, the language part is not really used, it is the UTF-8 = part that matters. You are absolutely right. I just confirmed that setting LANG to "UTF-8" = works. So I agree that Mac startup code should just check LANG and, if = it is not found, set it to "UTF-8". CV= From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 24 17:11:11 2013 Received: (at 15402) by debbugs.gnu.org; 24 Sep 2013 21:11:11 +0000 Received: from localhost ([127.0.0.1]:33313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VOZt1-0001D1-33 for submit@debbugs.gnu.org; Tue, 24 Sep 2013 17:11:11 -0400 Received: from relais.videotron.ca ([24.201.245.36]:24739) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VOZsy-0001Cl-8K for 15402@debbugs.gnu.org; Tue, 24 Sep 2013 17:11:08 -0400 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from ceviche.home ([24.201.53.56]) by VL-VM-MR006.ip.videotron.ca (Oracle Communications Messaging Exchange Server 7u4-22.01 64bit (built Apr 21 2011)) with ESMTP id <0MTN00KZ8EUJ1U20@VL-VM-MR006.ip.videotron.ca> for 15402@debbugs.gnu.org; Tue, 24 Sep 2013 17:11:07 -0400 (EDT) Received: by ceviche.home (Postfix, from userid 20848) id 4168F665EB; Thu, 19 Sep 2013 17:30:48 -0400 (EDT) From: Stefan Monnier To: Jan =?windows-1252?Q?Dj=E4rv?= Subject: Re: bug#15402: 24.3; Emacs and Mac OS Dock bad launch behavior Message-id: References: <10088A94-BDA2-4B86-96EF-A1DE03E38737@gmail.com> Date: Thu, 19 Sep 2013 17:30:48 -0400 In-reply-to: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Spam-Score: 3.1 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: >>> This is NOT required when launching Emacs from the command line! >> Typically, the difference between the two is that running Emacs from the >> command line runs it with environment variables set by your shell's init >> scripts, whereas running it from the GUI does not have those >> env-vars set. >> IOW please compare M-: process-environment RET in the two cases, it will >> probably contain a clue. > I already checked, LANG is needed to be set properly in the environment, and > it isn't when laucnhng from dock. M-x setenv doesn't help, as it really > doesn't setenv anything (should be renamed IMHO). [...] Content analysis details: (3.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [24.201.245.36 listed in list.dnswl.org] 2.1 DATE_IN_PAST_96_XX Date: is 96 hours or more before Received: date 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 T_HDRS_LCASE Odd capitalization of message header 0.0 T_MANY_HDRS_LCASE Odd capitalization of multiple message headers X-Debbugs-Envelope-To: 15402 Cc: 15402@debbugs.gnu.org, Constantine Vetoshev X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: 3.0 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: >>> This is NOT required when launching Emacs from the command line! >> Typically, the difference between the two is that running Emacs from the >> command line runs it with environment variables set by your shell's init >> scripts, whereas running it from the GUI does not have those >> env-vars set. >> IOW please compare M-: process-environment RET in the two cases, it will >> probably contain a clue. > I already checked, LANG is needed to be set properly in the environment, and > it isn't when laucnhng from dock. M-x setenv doesn't help, as it really > doesn't setenv anything (should be renamed IMHO). [...] Content analysis details: (3.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [24.201.245.36 listed in list.dnswl.org] 2.1 DATE_IN_PAST_96_XX Date: is 96 hours or more before Received: date 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) >>> This is NOT required when launching Emacs from the command line! >> Typically, the difference between the two is that running Emacs from the >> command line runs it with environment variables set by your shell's init >> scripts, whereas running it from the GUI does not have those >> env-vars set. >> IOW please compare M-: process-environment RET in the two cases, it will >> probably contain a clue. > I already checked, LANG is needed to be set properly in the environment, and > it isn't when laucnhng from dock. M-x setenv doesn't help, as it really > doesn't setenv anything (should be renamed IMHO). IIRC, under Darwin, everything along the lines of locale-coding-system, keyboard-codind-system, terminal-coding-system, etc... should always be utf-8. So we probably don't need to look at LANG to make that decision. Stefan From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 29 13:11:07 2013 Received: (at 15402-done) by debbugs.gnu.org; 29 Sep 2013 17:11:07 +0000 Received: from localhost ([127.0.0.1]:44999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VQKWR-0003Tu-2Z for submit@debbugs.gnu.org; Sun, 29 Sep 2013 13:11:07 -0400 Received: from mail01.bdtv.se ([176.10.222.34]:34054) by debbugs.gnu.org with smtp (Exim 4.80) (envelope-from ) id 1VQKWM-0003TQ-PX for 15402-done@debbugs.gnu.org; Sun, 29 Sep 2013 13:11:03 -0400 Received: (qmail 5734 invoked by uid 89); 29 Sep 2013 17:11:00 -0000 Received: from h-46-59-42-57.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.57) by mail01.bdtv.se with ESMTPA; 29 Sep 2013 17:11:00 -0000 Received: from [172.20.199.13] (unknown [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 939561A0271; Sun, 29 Sep 2013 17:11:00 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: bug#15402: 24.3; Emacs and Mac OS Dock bad launch behavior From: =?iso-8859-1?Q?Jan_Dj=E4rv?= In-Reply-To: Date: Sun, 29 Sep 2013 19:11:01 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <4C2DA9B6-5932-4CD2-BEDE-8384C11FE8AA@swipnet.se> References: <10088A94-BDA2-4B86-96EF-A1DE03E38737@gmail.com> To: Stefan Monnier X-Mailer: Apple Mail (2.1510) X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 15402-done Cc: Constantine Vetoshev , 15402-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (+) Hello. Finally got round to fixing this. Closing. Jan D. 19 sep 2013 kl. 23:30 skrev Stefan Monnier : >>>> This is NOT required when launching Emacs from the command line! >>> Typically, the difference between the two is that running Emacs from = the >>> command line runs it with environment variables set by your shell's = init >>> scripts, whereas running it from the GUI does not have those >>> env-vars set. >>> IOW please compare M-: process-environment RET in the two cases, it = will >>> probably contain a clue. >> I already checked, LANG is needed to be set properly in the = environment, and >> it isn't when laucnhng from dock. M-x setenv doesn't help, as it = really >> doesn't setenv anything (should be renamed IMHO). >=20 > IIRC, under Darwin, everything along the lines of = locale-coding-system, > keyboard-codind-system, terminal-coding-system, etc... should always = be > utf-8. So we probably don't need to look at LANG to make that = decision. >=20 >=20 > Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 30 11:14:39 2013 Received: (at 15402-done) by debbugs.gnu.org; 30 Sep 2013 15:14:39 +0000 Received: from localhost ([127.0.0.1]:46114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VQfBG-0004db-TE for submit@debbugs.gnu.org; Mon, 30 Sep 2013 11:14:39 -0400 Received: from mail-pb0-f42.google.com ([209.85.160.42]:57094) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VQfBD-0004dR-OF for 15402-done@debbugs.gnu.org; Mon, 30 Sep 2013 11:14:36 -0400 Received: by mail-pb0-f42.google.com with SMTP id un15so5740391pbc.29 for <15402-done@debbugs.gnu.org>; Mon, 30 Sep 2013 08:14:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=O3D5EGS1Fwa6B2dadVJxWyFQpWlE/c5Cp8uYhvEBkOI=; b=Ri3YYoDpBGvVqgXdycu0U8ufu4VEdeayl4ZRx/+htmfjTbxQHHwivzGNOQyyfBiGYI yYcF50ADQwMub63mR52KV27p+hu+1wyFPYusVegY7u72/Is4291PuTbXJdmIgcRH/XeN s5rmNOuMU69x3FVmB/dcEy60tXuKyNpDLVowsBL9k51ZXupgpREwmcne0RUNwp38FcqY AKGSWmT88xujWYJB6yLqaya8YPyY/qliyDXLLnmpUxjhHSIdO55Qs2G9id2DvEgNHRqK Ag98HlZJqshTQBmUm78mlB+ZSJ04npH1zP9KZtWcuUVFIr9EymQXYpNdUhZ91/LoTNag fuBw== X-Received: by 10.66.159.40 with SMTP id wz8mr8725833pab.135.1380554074816; Mon, 30 Sep 2013 08:14:34 -0700 (PDT) Received: from [192.168.1.101] (c-76-126-148-240.hsd1.ca.comcast.net. [76.126.148.240]) by mx.google.com with ESMTPSA id ia5sm1203890pbc.42.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Sep 2013 08:14:33 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: bug#15402: 24.3; Emacs and Mac OS Dock bad launch behavior From: Constantine Vetoshev In-Reply-To: <4C2DA9B6-5932-4CD2-BEDE-8384C11FE8AA@swipnet.se> Date: Mon, 30 Sep 2013 08:14:40 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <10088A94-BDA2-4B86-96EF-A1DE03E38737@gmail.com> <4C2DA9B6-5932-4CD2-BEDE-8384C11FE8AA@swipnet.se> To: =?iso-8859-1?Q?Jan_Dj=E4rv?= X-Mailer: Apple Mail (2.1510) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 15402-done Cc: Stefan Monnier , 15402-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -0.7 (/) On Sep 29, 2013, at 10:11, Jan Dj=E4rv wrote: > Finally got round to fixing this. Closing. Great! Thank you very much.= From unknown Mon Aug 18 14:25:26 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 29 Oct 2013 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator