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
Updated by Toshi MARUYAMA over 13 years ago
- Category changed from SCM extra to SCM
Updated by Toshi MARUYAMA over 13 years ago
- Status changed from New to Closed
- Resolution set to Duplicate
This is fixed by #2664 in Redmine 1.2.0.
Updated by Andrey Polyakov over 13 years ago
- Status changed from Closed to Reopened
I'm testing with redmine 1.2.0. It's not falls, but replaces cyrrillic chars to '?'. It's not right choice, system must convert path encoding to UTF8.
Updated by Toshi MARUYAMA over 13 years ago
- Status changed from Reopened to Closed
You need to set your path encoding on project repository setting.
Actions