Actions
Defect #8726
closedRedmine+Mercurial+PostgreSQL 9 falls with cyrrilic filenames in repository
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
2011-06-30
Due date:
% Done:
0%
Estimated time:
Resolution:
Duplicate
Affected version:
Description
On windows 7 redmine(1.1.3.stable) falls when loads mercurial repo containing files with cyrrillic names.
Error message: PGError: ERROR: invalid byte sequence for encoding "UTF8"...
Error placed at app\models\changeset.rb row 175.
For me this code works:
# Creates a new Change from it's common parameters def create_change(change) Change.create(:changeset => self, :action => change[:action], :path => Iconv.conv('UTF-8', 'WINDOWS-1251', change[:path]), #:path => change[:path], :from_path => change[:from_path], :from_revision => change[:from_revision]) end
Of course it isn't true way. But I don't have Ruby knowledge for correct fix.
Related issues
Actions