bad encoding on reporting error.

Bug #404740 reported by INADA Naoki on 2009-07-26
This bug affects 1 person
Affects Status Importance Assigned to Milestone

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.

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

Other bug subscribers