Web commits failed on files with international characters in filenames

Issue #849 resolved
Stas Fomin created an issue

Rhodecode, Git repository.

If filenames contains only ASCII - web editing and commits works OK.

If filenames contains international characters (in my case - russian, for example file like "20130329-16-Пикулев, Управление рисками в Agile-проектах.scenario")

"Error occurred during commit" with stack

~
    imc.change(FileNode(path, content, mode=cs.get_file_mode(f_path)))          
  File "/usr/local/lib/python2.6/dist-packages/rhodecode/lib/vcs/backends/git/changeset.py", line 258, in get_file_mode                                         x~~~~~~~~~~~~~~~~~~~~
    self._get_id_for_path(path)                                                 
  File "/usr/local/lib/python2.6/dist-packages/rhodecode/lib/vcs/backends/git/changeset.py", line 149, in _get_id_for_path                                      x~~~~~~~~~~~~~~~~~~~~
    name = '/'.join((curdir, item))                                             
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 12: ordinal not in range(128) 

Comments (4)

  1. Marcin Kuzminski repo owner

    I managed to reproduce this, it's now fixed in dev branch. Will go into next release.

  2. Log in to comment