Project

General

Profile

Actions

Defect #8726

closed

Redmine+Mercurial+PostgreSQL 9 falls with cyrrilic filenames in repository

Added by Andrey Polyakov almost 13 years ago. Updated almost 13 years ago.

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

Is duplicate of Redmine - Defect #2664: Mercurial: Repository path encoding of non UTF-8 charactersClosedToshi MARUYAMA2009-02-04

Actions
Actions

Also available in: Atom PDF