From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?=E7=AB=AF=E7=91=9E?= Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#3616: 23.0.94; vc-bzr coding system bug Date: Fri, 19 Jun 2009 16:24:37 +0800 Message-ID: <30dcab0d0906190124s606e571ep288130d84a250760@mail.gmail.com> Reply-To: =?UTF-8?Q?=E7=AB=AF=E7=91=9E?= , 3616@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1245400662 17607 80.91.229.12 (19 Jun 2009 08:37:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Jun 2009 08:37:42 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 19 10:37:39 2009 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.50) id 1MHZbL-0004ug-DW for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Jun 2009 10:37:36 +0200 Original-Received: from localhost ([127.0.0.1]:41768 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHZbK-0000gm-Nd for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Jun 2009 04:37:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHZbF-0000e0-O0 for bug-gnu-emacs@gnu.org; Fri, 19 Jun 2009 04:37:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHZbA-0000U1-Vu for bug-gnu-emacs@gnu.org; Fri, 19 Jun 2009 04:37:29 -0400 Original-Received: from [199.232.76.173] (port=37250 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHZbA-0000Te-BV for bug-gnu-emacs@gnu.org; Fri, 19 Jun 2009 04:37:24 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:57286) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MHZb9-0003pm-Ob for bug-gnu-emacs@gnu.org; Fri, 19 Jun 2009 04:37:24 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5J8bLJS013852; Fri, 19 Jun 2009 01:37:22 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n5J8U3sf012353; Fri, 19 Jun 2009 01:30:03 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: =?UTF-8?Q?=E7=AB=AF=E7=91=9E?= Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 19 Jun 2009 08:30:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 3616 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124539989111455 (code B ref -1); Fri, 19 Jun 2009 08:30:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 19 Jun 2009 08:24:51 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5J8OhK9011442 for ; Fri, 19 Jun 2009 01:24:44 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:44393 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MHZOs-0007Su-DU for emacs-pretest-bug@gnu.org; Fri, 19 Jun 2009 04:24:42 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MHZOq-0001Yp-LE for emacs-pretest-bug@gnu.org; Fri, 19 Jun 2009 04:24:42 -0400 Original-Received: from wa-out-1112.google.com ([209.85.146.177]:41551) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MHZOq-0001YL-1S for emacs-pretest-bug@gnu.org; Fri, 19 Jun 2009 04:24:40 -0400 Original-Received: by wa-out-1112.google.com with SMTP id m34so373165wag.26 for ; Fri, 19 Jun 2009 01:24:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=IYLf/fi/rX4G6OHtz9YQ78XeLJqxwRjOAQKz93Pau3w=; b=jKSJVFmzmTIYDpvtE8qaNlh2ga9VNThDVgY0jsjW4Bd5T2XlUsx6Emv5CuhgvXx1xU jRb5yodBDA9he9OPGFz9BPdp4Asghxrk4EH5H6EkJMq9/wTrLlGtX18Bco0dUsx0EEAr yLHd7/F+AChrXslLV/lW8woU01FFfWRxdjxMY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=WFoS5BYfHid/PpWsyLOqgpGOyUxse9AgkumHtjIoO1gNst0HWnxyyrpbZedLHVd9ac pxHLJdSpDABGOGq9MaCb+Qq2BxwC3uZIVnmCFGAZ5yD9vzTgmK67GSUTbSW8u3j82/fo lx6zkxnb8Gayi1mfheosBykblV8AEU0L5/0wk= Original-Received: by 10.114.113.16 with SMTP id l16mr3676898wac.21.1245399878032; Fri, 19 Jun 2009 01:24:38 -0700 (PDT) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Fri, 19 Jun 2009 04:37:29 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:28842 gmane.emacs.pretest.bugs:24664 Archived-At: In short, the bug is, when I use Chinese, it cannot commit successfully. The version of my bazaar is 1.15. Next I will show 3 bazaar sessions and their bzr log, 1 and 3 are with this= bug. Obviously, the command string passed from Emacs to bazaar was wrongly encod= ed. 1. When I run the command bzr commit in Emacs *shell* buffer, my comment message is written in Chinese, the result was: -------------------------------- d:\ehome\5-Dev\Mobile\Brew\Ver0.9\ehome>bzr commit -m "=D0=DE=D5=FD=C1=CB=C1=AA=CF=B5=C8=CB=C1=D0=B1=ED=B5=C4=BD=B9=B5=E3=D2=C6= =B6=AF=CE=CA=CC=E2=BA=CD=B0=B4#=BC=FC=CA=B1=B5=C4=B2=CB=B5=A5=B8=FC=D0=C2= =CE=CA=CC=E2=A1=A3" bzr commit -m "=E4=BF =E4=BA=86=E8=81=94=E7=B3=BB=E4=BA=BA=E5=88=97=E8=A1= =A8=E7=9A=84=E7=84=A6=E7=82=B9=E7=A7=BB=E5=8A=A8=E9=97=AE=E9=A2=98=E5=92=8C= =E6=8C?=E9=94 =97=B6=E7=9A=84=E8=8F=9C=E5=8D=95=E6=9B=B4=E6=96=B0=E9=97=AE= =E9=A2=98=E3 ? Traceback (most recent call last): File "bzr", line 130, in File "bzrlib\commands.pyo", line 969, in main bzrlib.errors.BzrError: Parameter ''\xe4\xbf\xae\xe6\xad\xa3\xe4\xba\x86\xe8\x81\x94\xe7\xb3\xbb\xe4\xba\xba\= xe5\x88\x97\xe8\xa1\xa8\xe7\x9a\x84\xe7\x84\xa6\xe7\x82\xb9\xe7\xa7\xbb\xe5= \x8a\xa8\xe9\x97\xae\xe9\xa2\x98\xe5\x92\x8c\xe6\x8c?\xe9\x94\xae\xe6\x97\x= b6\xe7\x9a\x84\xe8\x8f\x9c\xe5\x8d\x95\xe6\x9b\xb4\xe6\x96\xb0\xe9\x97\xae\= xe9\xa2\x98\xe3\x80?'' is unsupported by the current encoding. -------------------------------- I run the above command twice. Both got the same result. There was no bzr log for these two operations in the file .bzr.log. 2. It could not commit until I changed the comment message to English: -------------------------------- d:\ehome\5-Dev\Mobile\Brew\Ver0.9\ehome>bzr commit -m "Fixed the focus move problems in the contact list and the update problem on the menu bar when # key is clicked." bzr commit -m "Fixed the focus move problems in the contact list and the update problem on the menu bar when # key is clicked." Committing to: D:/ehome/5-Dev/Mobile/Brew/Ver0.9/ehome/ modified .bzrignore modified App/ChattingListBox.h modified App/ChattingListBox.inl modified App/EhomeAppLayer.h modified App/EhomeAppLayer.inl modified App/EhomeAppLayer_Session.inl modified App/SipPriorityTable.h modified App/StructInfo/Message.h modified App/StructInfo/Message.inl modified App/StructInfo/session.inl modified AppUI/ChattingListBoxItem.inl modified AppUI/ChattingTabPage.h modified AppUI/ChattingTabPage.inl modified AppUI/ContactsListTabPage.inl modified AppUI/ContactsListTree.inl modified AppUI/FormChat.inl modified AppUI/MsgItemTrans.inl modified AppUI/SendTakePic.inl modified AppUI/SetInfoTakePic.inl modified AppUI/TreeViewWithAds.h modified AppUI/TreeViewWithAds.inl modified AppUI/WithAdItemListbox.inl modified AppUI/AdsUI/AdsAction.h modified AppUI/AdsUI/AdsAction.inl modified AppUI/AdsUI/AdsComm.inl modified AppUI/AdsUI/AdsHttpRequest.h modified AppUI/AdsUI/AdsHttpRequest.inl modified AppUI/AdsUI/AdsItemPainter.h modified AppUI/AdsUI/AdsItemPainter.inl modified common/SaveRecord.inl modified common/config.h modified common/ehomesound.h modified common/ehomesound.inl modified common/logger.inl modified common/sound.inl modified common/util.h modified common/util.inl modified common/net/MySocket.inl modified common/stl/astringbuilder.inl modified common/stl/wstring.h added doc/contacts_focus.txt added doc/tilemgr_test_cases.html Committed revision 56. -------------------------------- The log in .bzr.log is: -------------------------------- =D0=C7=C6=DA=CE=E5 2009-06-19 15:46:19 +0800 0.125 bzr arguments: [u'commit', u'-m', u'Fixed the focus move problems in the contact list and the update problem on the menu bar when # key is clicked.'] 0.140 looking for plugins in C:/Documents and Settings/Ryan/Application Data/bazaar/2.0/plugins 0.140 looking for plugins in C:/Program Files/Bazaar/plugins 0.312 encoding stdout as osutils.get_user_encoding() 'cp936' 0.375 opening working tree 'D:/ehome/5-Dev/Mobile/Brew/Ver0.9/ehome' 0.437 preparing to commit [ 4452] 2009-06-19 15:46:19.703 INFO: Committing to: D:/ehome/5-Dev/Mobile/Brew/Ver0.9/ehome/ 0.453 Selecting files for commit with filter [] [ 4452] 2009-06-19 15:46:19.875 INFO: modified .bzrignore [ 4452] 2009-06-19 15:46:19.875 INFO: modified App/ChattingListBox.h [ 4452] 2009-06-19 15:46:19.875 INFO: modified App/ChattingListBox.inl [ 4452] 2009-06-19 15:46:19.875 INFO: modified App/EhomeAppLayer.h [ 4452] 2009-06-19 15:46:19.875 INFO: modified App/EhomeAppLayer.inl [ 4452] 2009-06-19 15:46:19.875 INFO: modified App/EhomeAppLayer_Session.in= l [ 4452] 2009-06-19 15:46:19.875 INFO: modified App/SipPriorityTable.h [ 4452] 2009-06-19 15:46:19.890 INFO: modified App/StructInfo/Message.h [ 4452] 2009-06-19 15:46:19.890 INFO: modified App/StructInfo/Message.inl [ 4452] 2009-06-19 15:46:19.890 INFO: modified App/StructInfo/session.inl [ 4452] 2009-06-19 15:46:19.890 INFO: modified AppUI/ChattingListBoxItem.in= l [ 4452] 2009-06-19 15:46:19.890 INFO: modified AppUI/ChattingTabPage.h [ 4452] 2009-06-19 15:46:19.890 INFO: modified AppUI/ChattingTabPage.inl [ 4452] 2009-06-19 15:46:19.890 INFO: modified AppUI/ContactsListTabPage.in= l [ 4452] 2009-06-19 15:46:19.890 INFO: modified AppUI/ContactsListTree.inl [ 4452] 2009-06-19 15:46:19.890 INFO: modified AppUI/FormChat.inl [ 4452] 2009-06-19 15:46:19.890 INFO: modified AppUI/MsgItemTrans.inl [ 4452] 2009-06-19 15:46:19.890 INFO: modified AppUI/SendTakePic.inl [ 4452] 2009-06-19 15:46:19.890 INFO: modified AppUI/SetInfoTakePic.inl [ 4452] 2009-06-19 15:46:19.890 INFO: modified AppUI/TreeViewWithAds.h [ 4452] 2009-06-19 15:46:19.890 INFO: modified AppUI/TreeViewWithAds.inl [ 4452] 2009-06-19 15:46:19.890 INFO: modified AppUI/WithAdItemListbox.inl [ 4452] 2009-06-19 15:46:19.890 INFO: modified AppUI/AdsUI/AdsAction.h [ 4452] 2009-06-19 15:46:19.890 INFO: modified AppUI/AdsUI/AdsAction.inl [ 4452] 2009-06-19 15:46:19.890 INFO: modified AppUI/AdsUI/AdsComm.inl [ 4452] 2009-06-19 15:46:19.890 INFO: modified AppUI/AdsUI/AdsHttpRequest.h [ 4452] 2009-06-19 15:46:19.890 INFO: modified AppUI/AdsUI/AdsHttpRequest.i= nl [ 4452] 2009-06-19 15:46:19.890 INFO: modified AppUI/AdsUI/AdsItemPainter.h [ 4452] 2009-06-19 15:46:19.890 INFO: modified AppUI/AdsUI/AdsItemPainter.i= nl [ 4452] 2009-06-19 15:46:19.890 INFO: modified common/SaveRecord.inl [ 4452] 2009-06-19 15:46:19.890 INFO: modified common/config.h [ 4452] 2009-06-19 15:46:19.890 INFO: modified common/ehomesound.h [ 4452] 2009-06-19 15:46:19.890 INFO: modified common/ehomesound.inl [ 4452] 2009-06-19 15:46:19.890 INFO: modified common/logger.inl [ 4452] 2009-06-19 15:46:19.890 INFO: modified common/sound.inl [ 4452] 2009-06-19 15:46:19.905 INFO: modified common/util.h [ 4452] 2009-06-19 15:46:19.905 INFO: modified common/util.inl [ 4452] 2009-06-19 15:46:19.905 INFO: modified common/net/MySocket.inl [ 4452] 2009-06-19 15:46:19.905 INFO: modified common/stl/astringbuilder.in= l [ 4452] 2009-06-19 15:46:19.905 INFO: modified common/stl/wstring.h [ 4452] 2009-06-19 15:46:19.905 INFO: added doc/contacts_focus.txt [ 4452] 2009-06-19 15:46:19.905 INFO: added doc/tilemgr_test_cases.html [ 4452] 2009-06-19 15:46:20.733 INFO: Committed revision 56. 1.531 return code 0 -------------------------------- 3. When I committed a single file from the *vc-dir* buffer using the v shortcut, and write the message in Chinese, it also failed and complained as follows: -------------------------------- Traceback (most recent call last): File "bzr", line 130, in File "bzrlib\commands.pyo", line 969, in main bzrlib.errors.BzrError: Parameter ''\xe8\xaf\x95\xe8\xaf\x95\xe7\x94\xa8\xe4\xb8\xad\xe6\x96\x87\xe3\x80?'' is unsupported by the current encoding. -------------------------------- It didn't generate any bzr log, either. In GNU Emacs 23.0.94.1 (i386-mingw-nt5.1.2600) of 2009-05-24 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4)' 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: CHS value of $XMODIFIERS: nil locale-coding-system: cp936 default-enable-multibyte-characters: t Major mode: Shell Minor modes in effect: diff-auto-refine-mode: t shell-dirtrack-mode: t desktop-save-mode: t show-paren-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: p d a t e SPC p r p r o b l e m SPC o n SPC t h e m SPC m e n u SPC b a r SPC w h e n SPC p r e s s i n g # SPC k e y SPC i s SPC p r e s s e d . c l i c k e d . C-f M-v M-v C-l C-h l C-x 1 C-h L C-x o v C-v M-v C-x k C-x o C-x 1 C-h k C-x f C-x C-h C-x t C-g C-h k C-x t C-x o C-v M-v C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-n C-n C-n C-p C-p C-p C-p C-p C-p C-p C-n C-v C-x b C-h v t e r m i n a l c o C-g C-x b C-x b C-h v d e f a u l t SPC t e r C-x 1 M-x f i n d SPC l i b b z r M-x M-p v c - v b b a z C-v C-n C-n C-n C-n C-n C-n C-n C-n C-f C-f C-f C-f C-f C-f M-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-x k M-x r e p o r t SPC Recent messages: History item: 2 Quit [3 times] History item: 1 [2 times] Type C-x 1 to delete the help window, C-M-v to scroll help. Buffer is read-only: # Type C-x 1 to delete the help window, C-M-v to scroll help. Quit mouse-2, RET: find function's definition Quit find-library-name: Can't find library bzr call-interactively: End of buffer