want a way to set the encoding of the commit message file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Low
|
Unassigned |
Bug Description
Well, I use bzr under Windows XP. Default encoding of my os is `gbk' while I want to write my commit message in utf-8 encoding. But each time when I try to do so, bzr will throw out an error:
-------
E:\bzrbzr>bzr commit --unchanged --file log.txt
Committing to: E:/bzrbzr/
aborting commit write group: UnicodeDecodeEr
\xe6\xb6\
\x82\n', 26, 28, 'illegal multibyte sequence')
bzr: ERROR: exceptions.
ition 26-27: illegal multibyte sequence
Traceback (most recent call last):
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "codecs.pyo", line 618, in read
UnicodeDecodeError: 'gbk' codec can't decode bytes in position 26-27: illegal mu
ltibyte sequence
bzr 2.1.0b4 on python 2.5.4 (Windows-
arguments: ['bzr', 'commit', '--unchanged', '--file', 'log.txt']
encoding: 'cp936', fsenc: 'mbcs', lang: None
plugins:
bzrtools C:\Program Files\Bazaar\
explorer C:\Program Files\Bazaar\
launchpad C:\Program Files\Bazaar\
netrc_
[2.1.0b4]
qbzr C:\Program Files\Bazaar\
rebase C:\Program Files\Bazaar\
svn C:\Program Files\Bazaar\
upload C:\Program Files\Bazaar\
xmloutput C:\Program Files\Bazaar\
*** Bazaar has encountered an internal error. This probably indicates a
bug in Bazaar. You can help us fix it by filing a bug report at
https:/
including this traceback and a description of the problem.
-------
`log.txt' is utf-8 encoded and contains some whatever Chinese characters.
So... can I specify an explicit encoding of the message while doing commit? Or any other ways to do it successfully without changing the encoding of `log.txt' to system's default encoding(gbk)?
tags: | added: easy unicode |
Changed in bzr: | |
status: | New → Confirmed |
importance: | Undecided → Low |
tags: | added: check-for-breezy |
tags: | removed: check-for-breezy |