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 #1

Updated by Etienne Massip almost 13 years ago

  • Category set to SCM extra
Actions #2

Updated by Toshi MARUYAMA almost 13 years ago

  • Category changed from SCM extra to SCM
Actions #3

Updated by Toshi MARUYAMA almost 13 years ago

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

This is fixed by #2664 in Redmine 1.2.0.

Actions #4

Updated by Andrey Polyakov almost 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.

Actions #5

Updated by Toshi MARUYAMA almost 13 years ago

  • Status changed from Reopened to Closed

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

Actions

Also available in: Atom PDF