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 11 years ago. Updated over 11 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 #1

Updated by Alexander Usenko over 11 years ago

There can be a problem with file annotation view (simple file view is Ok). "Attachments and repositories encodings" in application settings must be set to "UTF-8, CP1251", not to "CP1251, UTF-8". Last case causes file to look like it is encoded in UTF-8, but is browsed in CP1251.

What is being seen: тест тест тест
What should be seen: тест тест тест

Maybe i forgot smth in annotate function of bazaar_adapter.rb

Actions #2

Updated by Bruno Souza over 11 years ago

I dont know

Actions #3

Updated by Toshi MARUYAMA over 11 years ago

  • Status changed from New to 7
  • Assignee set to Toshi MARUYAMA
  • Affected version (unused) deleted (2.0.3)
  • Affected version deleted (2.0.3)
Actions #4

Updated by Toshi MARUYAMA over 11 years ago

  • Subject changed from Redmine+Bazaar+Windows: "???" instead of cyrillic symbols in repository paths to Bazaar+Windows: "???" instead of non ASCII character in paths
Actions #5

Updated by Toshi MARUYAMA over 11 years ago

  • Subject changed from Bazaar+Windows: "???" instead of non ASCII character in paths to Bazaar: "???" instead of non ASCII character in paths on non UTF-8 locale
Actions #6

Updated by Toshi MARUYAMA over 11 years ago

  • Target version set to 2.2.0
  • % Done changed from 0 to 100
Actions #7

Updated by Jean-Philippe Lang over 11 years ago

  • Status changed from 7 to Closed
  • Resolution set to Fixed
Actions

Also available in: Atom PDF