Project

General

Profile

Actions

Defect #11834

closed

Bazaar: "???" instead of non ASCII character in paths on non UTF-8 locale

Added by Alexander Usenko over 12 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Toshi MARUYAMA
Category:
SCM
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Resolution:
Fixed
Affected version:

Description

BitNami Redmine Stack:
  • Redmine 2.0.3
  • Ruby 1.8.7
  • Rails 3.2.6
  • Apache 2.2

I'm using Redmine on Windows XP SP3 Rus and Windows Server 2003 Rus (cp1251). There is a problem with browsing Bazaar repository containing cyrillic symbols in repository filenames and paths. I see ??? instead of cyrillic symbols.

I didn't find solution of this problem anywhere. Is there one?

So, I checked other scm *_adapter.rb and made same 'bzr' output encoding convertion, so everything works now (see attached files, they contains comments of basic changes). Was it useless?

Changes:
  • Added path encoding setup when adding Bazaar repo (same as for the filesystem).
  • Removed log encoding setup, because of Bazaar is storing all comments in utf8 inside and outputs them with same encoding as for the path.

P.S. Saw Ruby for the first time when started to do this


Files

bazaar.rb (3.95 KB) bazaar.rb Alexander Usenko, 2012-09-14 17:15
bazaar_adapter.rb (11.8 KB) bazaar_adapter.rb Alexander Usenko, 2012-09-14 17:15
repositories_helper.rb (12.9 KB) repositories_helper.rb Alexander Usenko, 2012-09-14 17:15
Actions

Also available in: Atom PDF