error with umlauts in directory name

Martin Steigerwald Martin at lichtvoll.de
Sat Feb 3 17:50:37 GMT 2007


Please also CC to my personal address as I am not subcribed to list.


Hello!

Now that it happens again I do so as advised and send this error message.

It happens on commit after I changed a file and added some more.

---------------------------------------------------------------------
martin at shambala:> bzr commit
bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 
0xfc in position 30: ordinal not in range(128)

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 626, in 
run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 588, in 
run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 292, in 
run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 1853, 
in run
    message = edit_commit_message(template)
  File "/usr/lib/python2.4/site-packages/bzrlib/msgeditor.py", line 98, in 
edit_commit_message
    tmp_fileno, msgfilename = tempfile.mkstemp(prefix='bzr_log.', 
dir=u'.')
  File "tempfile.py", line 302, in mkstemp
    return _mkstemp_inner(dir, prefix, suffix, flags)
  File "tempfile.py", line 238, in _mkstemp_inner
    return (fd, _os.path.abspath(file))
  File "posixpath.py", line 403, in abspath
    path = join(os.getcwd(), path)
  File "posixpath.py", line 65, in join
    path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xfc in position 30: 
ordinal not in range(128)

bzr 0.13.0 on python 2.4.4.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'commit']

** please send this report to bazaar-ng at lists.ubuntu.com
martin at shambala:~/Geburtstag 2007/Wünsche#3> bzr commit
bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 
0xfc in position 30: ordinal not in range(128)

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 626, in 
run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 588, in 
run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 292, in 
run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 1853, 
in run
    message = edit_commit_message(template)
  File "/usr/lib/python2.4/site-packages/bzrlib/msgeditor.py", line 98, in 
edit_commit_message
    tmp_fileno, msgfilename = tempfile.mkstemp(prefix='bzr_log.', 
dir=u'.')
  File "tempfile.py", line 302, in mkstemp
    return _mkstemp_inner(dir, prefix, suffix, flags)
  File "tempfile.py", line 238, in _mkstemp_inner
    return (fd, _os.path.abspath(file))
  File "posixpath.py", line 403, in abspath
    path = join(os.getcwd(), path)
  File "posixpath.py", line 65, in join
    path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xfc in position 30: 
ordinal not in range(128)

bzr 0.13.0 on python 2.4.4.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'commit']

** please send this report to bazaar-ng at lists.ubuntu.com
---------------------------------------------------------------------

Happens on Debian (mostly etch):

---------------------------------------------------------------------
martin at shambala:~> dpkg -l | egrep "(bzr|python)" | cut -c1-70
ii  bzr                                        0.13-0.1
ii  bzr-svn                                    0.2-1
ii  ipython                                    0.7.2-5
ii  libboost-python1.33.1                      1.33.1-10
ii  python                                     2.4.4-2
ii  python-apt                                 0.6.19
ii  python-cairo                               1.2.0-1
ii  python-celementtree                        1.0.5-8
ii  python-central                             0.5.12
ii  python-crypto                              2.0.1+dfsg1-1.2
ii  python-dbus                                0.71-3
ii  python-elementtree                         1.2.6-10
ii  python-glade2                              2.8.6-8
ii  python-gmenu                               2.16.1-2
ii  python-gnome2                              2.12.4-6
ii  python-gnome2-desktop                      2.14.0-3
ii  python-gnome2-extras                       2.14.2-1+b1
ii  python-gtk2                                2.8.6-8
ii  python-imaging                             1.1.5-11
ii  python-imaging-tk                          1.1.5-11
ii  python-libxml2                             2.6.27.dfsg-1
ii  python-minimal                             2.4.4-2
ii  python-numeric                             24.2-7
ii  python-paramiko                            1.5.2-0.1
ii  python-pycurl                              7.15.5-1
ii  python-pygame                              1.7.1release-4.1
ii  python-pylibacl                            0.2.1-3.1
ii  python-pyorbit                             2.0.1-5
ii  python-pysqlite2                           2.3.2-1
ii  python-pyxattr                             0.2.1-1.1
ii  python-qt3                                 3.16-1.2
ii  python-sip4                                4.4.5-4
ii  python-subversion                          1.4.2dfsg1-2
ii  python-support                             0.5.6
ii  python-tk                                  2.4.4-1
ii  python-uno                                 2.0.4.dfsg.2-4
ii  python-urwid                               0.9.7.1-1
ii  python-xml                                 0.8.4-6
ii  python2.4                                  2.4.4-2
ii  python2.4-minimal                          2.4.4-2
---------------------------------------------------------------------

Also with bzr 0.14:

---------------------------------------------------------------------
bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 
0xfc in position 30: ordinal not in range(128)

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 650, in 
run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 612, in 
run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 304, in 
run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 1919, 
in run
    reporter=reporter)
  File "/usr/lib/python2.4/site-packages/bzrlib/decorators.py", line 51, 
in write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.4/site-packages/bzrlib/mutabletree.py", line 126, 
in commit
    revprops=revprops, *args, **kwargs)
  File "/usr/lib/python2.4/site-packages/bzrlib/commit.py", line 307, in 
commit
    message = message_callback(self)
  File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 1896, 
in get_message
    my_message = edit_commit_message(template)
  File "/usr/lib/python2.4/site-packages/bzrlib/msgeditor.py", line 98, in 
edit_commit_message
    tmp_fileno, msgfilename = tempfile.mkstemp(prefix='bzr_log.', 
dir=u'.')
  File "tempfile.py", line 302, in mkstemp
    return _mkstemp_inner(dir, prefix, suffix, flags)
  File "tempfile.py", line 238, in _mkstemp_inner
    return (fd, _os.path.abspath(file))
  File "posixpath.py", line 403, in abspath
    path = join(os.getcwd(), path)
  File "posixpath.py", line 65, in join
    path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xfc in position 30: 
ordinal not in range(128)

bzr 0.14.0 on python 2.4.4.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'commit']

** please send this report to bazaar at lists.ubuntu.com
---------------------------------------------------------------------

With this repostory:

---------------------------------------------------------------------
martin at shambala:~/Geburtstag 2007/Wünsche#3> bzr info
Location:
  branch root: file:///home/martin/Geburtstag%202007/

Format:
       control: Meta directory format 1
  working tree: Working tree format 3
        branch: Branch format 5
    repository: Knit repository format 1

In the working tree:
         6 unchanged
         1 modified
         2 added
         0 removed
         0 renamed
         5 unknown
         0 ignored
         1 versioned subdirectory

Branch history:
         5 revisions
        19 days old
   first revision: Sun 2007-01-14 18:42:47 +0100
  latest revision: Thu 2007-01-18 22:56:48 +0100

Revision store:
         5 revisions
        89 KiB
---------------------------------------------------------------------

And this locale setting:

---------------------------------------------------------------------
martin at shambala:~> locale
LANG=de_DE at euro
LC_CTYPE="de_DE at euro"
LC_NUMERIC="de_DE at euro"
LC_TIME="de_DE at euro"
LC_COLLATE="de_DE at euro"
LC_MONETARY="de_DE at euro"
LC_MESSAGES="de_DE at euro"
LC_PAPER="de_DE at euro"
LC_NAME="de_DE at euro"
LC_ADDRESS="de_DE at euro"
LC_TELEPHONE="de_DE at euro"
LC_MEASUREMENT="de_DE at euro"
LC_IDENTIFICATION="de_DE at euro"
LC_ALL=
---------------------------------------------------------------------

All the files I want to update / add are same locale.

I have no time for further investigation right now or to write a bug 
report... so this will have to do it for now.

I worked around the bug by issuing:

bzr mv Wünsche Wuensche

(i.e. removing the umlaut from the directory name)

Regards,
-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070203/4439d3ac/attachment-0001.pgp 


More information about the bazaar mailing list