bad encoding on reporting error.

Bug #404740 reported by methane
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned

Bug Description

C:\foo>bzr push c:\あいう\えお
bzr: ERROR: Parent directory of c:\縺ゅ>縺・縺医♀ does not exist.
You may supply --create-prefix to create all leading parent directories.

1) BzrError.__str__ encodes error message to utf8.
So bzr should use u"...%s..." % (...,) instead of "...%s...".

2) sys.stderr.write(unicode_string) encodes unicode_string to default encoding (ascii).
So bzr should wrap sys.stderr with codecs.StreamWriter and suitable encoding.

methane (songofacandy)
tags: added: unicode
tags: added: encoding
removed: unicode
Martin Pool (mbp)
Changed in bzr:
status: New → Confirmed
importance: Undecided → Medium
Vincent Ladeuil (vila)
summary: - bad encoding on reporing error.
+ bad encoding on reporting error.
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.