mahsoud / boar

Automatically exported from code.google.com/p/boar
0 stars 0 forks source link

UnicodeEncodeError #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Update a directory with files that have special unicode character in their 
names

What is the expected output? What do you see instead?
Boar should update normally. Instead we see UnicodeEncodeError

What platform are you using? (Windows XP, Windows 7, Linux, ...)
Windows 7. I tested on my Ubuntu and this doesn't occur, it seems that the 
default local in my Ubuntu is some kind of unicode instead of ascii.

What version of Python are you using?
2.6

What version of boar are you using? (Mercurial change id or daily build
date)
    403cbb6bc635

Please provide any additional information below.

Original issue reported on code.google.com by uts...@gmail.com on 14 Apr 2011 at 2:01

GoogleCodeExporter commented 9 years ago
My patch simply changes the default log parameter in workdir::update to 
StreamEncoder(sys.stdout)

Original comment by uts...@gmail.com on 14 Apr 2011 at 2:39

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in changeset 9334c5852e01.

Good catch. I fixed it in a slightly different way than in the given patch, to 
reuse the existing stdout StreamEncoder.

Please verify that it works.

Original comment by ekb...@gmail.com on 14 Apr 2011 at 5:22

GoogleCodeExporter commented 9 years ago
It works.

Original comment by uts...@gmail.com on 15 Apr 2011 at 5:16

GoogleCodeExporter commented 9 years ago

Original comment by ekb...@gmail.com on 15 Apr 2011 at 7:37