Project

General

Profile

Wrong encoding for Bzr repository

Added by Muhammad Bashir Al-Noimi almost 11 years ago

Hi,

I configured my project for reading my bazaar repository but I surprised when I discoverd that redmine shows the log with '?' charefteres instead of unicode (I'm usign Arabic charecters)

I read about similar bug but it seems fixed while I'm still face this issue!

How can I fix this issue?

PS
"bzr log" shows correctly

My System locale

linux-server ~ # env
TERM=xterm
SHELL=/bin/bash
XDG_SESSION_COOKIE=8bc01c29c7eefef0c99074e800000005-1370964589.800340-2108479271
SSH_CLIENT=192.168.0.129 45329 22
SSH_TTY=/dev/pts/1
USER=root
MAIL=/var/mail/root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
PWD=/root
LANG=en_US.UTF-8
SHLVL=1
HOME=/root
LOGNAME=root
SSH_CONNECTION=192.168.0.129 45329 192.168.0.74 22
_=/usr/bin/env
linux-server ~ # dpkg-reconfigure locales
Generating locales...
  ar_LY.UTF-8... up-to-date
  ar_SA.UTF-8... up-to-date
  ar_SY.UTF-8... up-to-date
  en_AG.UTF-8... up-to-date
  en_AU.UTF-8... up-to-date
  en_BW.UTF-8... up-to-date
  en_CA.UTF-8... up-to-date
  en_DK.UTF-8... up-to-date
  en_GB.UTF-8... up-to-date
  en_HK.UTF-8... up-to-date
  en_IE.UTF-8... up-to-date
  en_IN.UTF-8... up-to-date
  en_NG.UTF-8... up-to-date
  en_NZ.UTF-8... up-to-date
  en_PH.UTF-8... up-to-date
  en_SG.UTF-8... up-to-date
  en_US.UTF-8... up-to-date
  en_ZA.UTF-8... up-to-date
  en_ZM.UTF-8... up-to-date
  en_ZW.UTF-8... up-to-date
Generation complete.
linux-server ~ # locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8" 
LC_NUMERIC="en_US.UTF-8" 
LC_TIME="en_US.UTF-8" 
LC_COLLATE="en_US.UTF-8" 
LC_MONETARY="en_US.UTF-8" 
LC_MESSAGES="en_US.UTF-8" 
LC_PAPER="en_US.UTF-8" 
LC_NAME="en_US.UTF-8" 
LC_ADDRESS="en_US.UTF-8" 
LC_TELEPHONE="en_US.UTF-8" 
LC_MEASUREMENT="en_US.UTF-8" 
LC_IDENTIFICATION="en_US.UTF-8" 
LC_ALL=
linux-server ~ # 

Postgresql configuration

-- Database: redmine_default

-- DROP DATABASE redmine_default;

CREATE DATABASE redmine_default
  WITH OWNER = postgres
       ENCODING = 'UTF8'
       TABLESPACE = pg_default
       LC_COLLATE = 'en_US.UTF-8'
       LC_CTYPE = 'en_US.UTF-8'
       CONNECTION LIMIT = -1;


Replies (9)

RE: Wrong encoding for Bzr repository - Added by Muhammad Bashir Al-Noimi almost 11 years ago

Any idea guys, I tried many things but nothing worked!

RE: Wrong encoding for Bzr repository - Added by Jan Niggemann (redmine.org team member) almost 11 years ago

I'm no expert on I18n / L10n, but does your locale en_US.UTF-8 really display your arabic characters correctly? I'd have expected this to not work...
Sorry, no idea...

RE: Wrong encoding for Bzr repository - Added by Muhammad Bashir Al-Noimi almost 11 years ago

does your locale en_US.UTF-8 really display your arabic characters correctly??

Yes, and I can read "bzr log" perfectly from the terminal.

RE: Wrong encoding for Bzr repository - Added by Muhammad Bashir Al-Noimi almost 11 years ago

Guys, reading bzr log is critical to me. does any one help me here?

RE: Wrong encoding for Bzr repository - Added by Jan Niggemann (redmine.org team member) almost 11 years ago

Quoting the bug report

Redmine forks "bzr log". So, check your redmine process locale (LANG environment variable).

Perhaps the user redmine runs as uses a different locale?

RE: Wrong encoding for Bzr repository - Added by Muhammad Bashir Al-Noimi almost 11 years ago

Perhaps the user redmine runs as uses a different locale?

I set default language of redmine in Arabic but bzr log still appears as '????'!!! Is there any config file on something else I've to edit?

RE: Wrong encoding for Bzr repository - Added by Muhammad Bashir Al-Noimi almost 11 years ago

In the attachment you can find my redmine language's settings.

RE: Wrong encoding for Bzr repository - Added by Muhammad Bashir Al-Noimi almost 11 years ago

In the attachment you can find the output of 'bzr log' which appears well while redmine can't

RE: Wrong encoding for Bzr repository - Added by Muhammad Bashir Al-Noimi almost 11 years ago

Folks,

This is too serious issue to me because I don't have any knowledge in Ruby to investigate about it, this community for only place I can get help from.

Thanks for help in advanced.

    (1-9/9)