Defect #8726

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

Added by Andrey Polyakov over 6 years ago. Updated over 6 years ago.

Status:ClosedStart date:2011-06-30
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:SCM
Target version:-
Resolution:Duplicate Affected version:1.1.3

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

Duplicates Redmine - Defect #2664: Mercurial: Repository path encoding of non UTF-8 characters Closed 2009-02-04

History

#1 Updated by Etienne Massip over 6 years ago

  • Category set to SCM extra

#2 Updated by Toshi MARUYAMA over 6 years ago

  • Category changed from SCM extra to SCM

#3 Updated by Toshi MARUYAMA over 6 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate

This is fixed by #2664 in Redmine 1.2.0.

#4 Updated by Andrey Polyakov over 6 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.

#5 Updated by Toshi MARUYAMA over 6 years ago

  • Status changed from Reopened to Closed

You need to set your path encoding on project repository setting.

Also available in: Atom PDF