プロジェクト

全般

プロフィール

Vote #72489

完了

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

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
SCM_3
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

100%

予定工数:
category_id:
3
version_id:
56
issue_org_id:
11834
author_id:
63227
assigned_to_id:
11192
comments:
7
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

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


journals

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
--------------------------------------------------------------------------------
I dont know
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリSCM_3 にセット
  • 対象バージョン2.2.0_56 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0