From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Constantine Vetoshev Newsgroups: gmane.emacs.bugs Subject: bug#15402: 24.3; Emacs and Mac OS Dock bad launch behavior Date: Tue, 17 Sep 2013 01:25:18 -0700 Message-ID: <10088A94-BDA2-4B86-96EF-A1DE03E38737@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_1C576747-1819-4D34-B394-0C661879B4B3" X-Trace: ger.gmane.org 1379431286 19334 80.91.229.3 (17 Sep 2013 15:21:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Sep 2013 15:21:26 +0000 (UTC) To: 15402@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 17 17:21:28 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VLx5j-0008LL-De for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Sep 2013 17:21:27 +0200 Original-Received: from localhost ([::1]:41933 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLx5i-0005mz-UE for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Sep 2013 11:21:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52323) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLx5V-0005ex-Jm for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2013 11:21:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLx5N-0006tT-59 for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2013 11:21:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35934) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLx5N-0006tN-0H for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2013 11:21:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VLx5M-0007tz-Od for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2013 11:21:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Constantine Vetoshev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Sep 2013 15:21:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15402 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.137943124730314 (code B ref -1); Tue, 17 Sep 2013 15:21:04 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Sep 2013 15:20:47 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) 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-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 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:78487 Archived-At: --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--