Special character "ß" cannot be used in the commit message.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Triaged
|
Low
|
Unassigned |
Bug Description
1. The Error:
-------
ingo@IngoLaptop /cygdrive/
$ bzr commit -F .bzrcommitmessage
Committing to: /cygdrive/
modified INSTALLIERE_
modified JJCouvenGallery
modified JJCouvenGallery
modified JJCouvenGallery
modified JJCouvenGallery
added JJCouvenGallery
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "commands.py", line 846, in run_bzr_
File "commands.py", line 802, in run_bzr
File "commands.py", line 504, in run_argv_aliases
File "builtins.py", line 2381, in run
File "decorators.py", line 165, in write_locked
File "workingtree_4.py", line 246, in commit
File "decorators.py", line 165, in write_locked
File "mutabletree.py", line 190, in commit
File "commit.py", line 367, in commit
File "builtins.py", line 2371, in get_message
File "/tmp/python.
return self.reader.
File "/tmp/python.
newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xdf in position 271: ordinal not in range(128)
bzr 1.4 on python 2.5.1 (cygwin)
arguments: ['/usr/bin/bzr', 'commit', '-F', '.bzrcommitmess
encoding: 'US-ASCII', fsenc: 'US-ASCII', lang: None
plugins:
launchpad /usr/lib/
*** Bazaar has encountered an internal error.
Please report a bug at https:/
including this traceback, and a description of what you
were doing when the error occurred.
-------
2. The original commit message leading to the above issue:
-------
Version 0.92-1
- Remove read only file properties after installation on any system
(fixes Gallery2 write problems because of write protected files
during startup on W2K, not (yet) encountered on XP or Vista)
- Changed in pms_config.ini to ShowShutdownMes
-------
3. The log after the issue was solved including the adjusted commit message:
-------
ingo@IngoLaptop /cygdrive/
$ bzr commit -F .bzrcommitmessage
Committing to: /cygdrive/
modified INSTALLIERE_
modified JJCouvenGallery
modified JJCouvenGallery
modified JJCouvenGallery
modified JJCouvenGallery
added JJCouvenGallery
Committed revision 13.
ingo@IngoLaptop /cygdrive/
$ bzr log
-------
revno: 13
committer: Ingo Kappler <email address>
branch nick: JJCouvenGallery
timestamp: Fri 2008-08-15 17:44:37 +0200
message:
Version 0.92-1
- Remove read only file properties after installation on any system
(fixes Gallery2 write problems because of write protected files
during startup on W2K, not (yet) encountered on XP or Vista)
- Changed in pms_config.ini to ShowShutdownMes
-------
4. Summary:
So the issue occurs when using the special character "ß" as part of the commit message.
Regards,
Ingo
bzr 1.4 on python 2.5.1 (cygwin) age']
arguments: ['/usr/bin/bzr', 'commit', '-F', '.bzrcommitmess
encoding: 'US-ASCII', fsenc: 'US-ASCII', lang: None
plugins:
Unfortunately, on Cygwin, the only encoding it supports is US-ASCII (as seen in the log and traceback).
If you use the native win32 package, you can use any unicode character that is available in your encoding. (For English windows this is cp1252, it may be different for your windows installation.)
There are ways to trick cygwin into allowing non-ascii characters, but IIRC they are difficult.