Muon displays garbled characters when zh_TW locale is used.

Bug #1377711 reported by V字龍(Vdragon)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Muon
Fix Released
Medium
muon (Ubuntu)
New
Undecided
Unassigned

Bug Description

Please refer the following screenshot for this issue.
http://i.imgur.com/qgKCvUj.jpg

Reproducible: Always

Steps to Reproduce:
1. Change to zh_TW locale
2. Let Muon fails to mark certain package

Actual Results:
As the above screenshot

Expected Results:
CJK characters rendered normally

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: muon 2.2.0-0ubuntu3.1
ProcVersionSignature: Ubuntu 3.16.0-18.25-lowlatency 3.16.3
Uname: Linux 3.16.0-18-lowlatency i686
NonfreeKernelModules: nvidia
ApportVersion: 2.14.1-0ubuntu3.5
Architecture: i386
CurrentDesktop: KDE
Date: Mon Oct 6 02:23:24 2014
InstallationDate: Installed on 2013-03-08 (575 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release i386 (20121017.2)
SourcePackage: muon
UpgradeStatus: Upgraded to trusty on 2014-04-19 (169 days ago)

Revision history for this message
In , V字龍(Vdragon) (vdragon) wrote :

Please refer the "URL" for this issue.

Reproducible: Always

Steps to Reproduce:
1. Change to zh_TW locale
2. Let Muon fails to mark certain package

Actual Results:
As the URL

Expected Results:
CJK characters rendered normally

Revision history for this message
V字龍(Vdragon) (vdragon) wrote :
William Lee (wlee753159)
tags: added: muon
tags: added: locale
tags: added: font
Changed in muon:
importance: Unknown → Medium
status: Unknown → New
Revision history for this message
In , Aleix Pol (aleixpol-kde) wrote :

Can you provide some screenshot?
I need to have something to start from.

Revision history for this message
In , V字龍(Vdragon) (vdragon) wrote :

(In reply to Aleix Pol from comment #1)
> Can you provide some screenshot?
> I need to have something to start from.

There's already a screenshot at the URL field(http://i.imgur.com/qgKCvUj.jpg)

Revision history for this message
In , Harald Sitter (apachelogger) wrote :

Please also get a screenshot of that same window in english.

I am reasonable certain these are string that come out of apt-pkg, so unless we run it through a latinstring somewhere it's probably a bug outside our reach.

Revision history for this message
In , V字龍(Vdragon) (vdragon) wrote :

Created attachment 90148
Similar window when Muon is run with env LANGUAGE=en

Revision history for this message
In , V字龍(Vdragon) (vdragon) wrote :

Created attachment 90149
Similar window when Muon is run with default LANGUAGE environment(zh_TW:zh_HK:zh:en)

Revision history for this message
In , V字龍(Vdragon) (vdragon) wrote :

(In reply to Harald Sitter from comment #3)
> Please also get a screenshot of that same window in english.
I can't regenerate the same window on this system, so I pick another package(hime-anthy) on this case:
* Similar window when Muon is run with default LANGUAGE environment(zh_TW:zh_HK:zh:en) (*garbled* text)
* Similar window when Muon is run with env LANGUAGE=en (english)

> I am reasonable certain these are string that come out of apt-pkg, so unless
> we run it through a latinstring somewhere it's probably a bug outside our
> reach.
I'm suspect there's a Unicode string being treated as latinstring here.

Revision history for this message
In , V字龍(Vdragon) (vdragon) wrote :

Considered the status unconfirmed, again.

Revision history for this message
In , Harald Sitter (apachelogger) wrote :

Git commit ca47d57cd44f40bfe774ab2c15b442467cbca8b1 by Harald Sitter.
Committed on 28/12/2014 at 19:12.
Pushed by sitter into branch 'master'.

run typeName string through QString as utf8 not latin1

it contains the localized name, not the latin1 base

M +1 -1 src/dependencyinfo.cpp

http://commits.kde.org/libqapt/ca47d57cd44f40bfe774ab2c15b442467cbca8b1

Revision history for this message
In , V字龍(Vdragon) (vdragon) wrote :

(In reply to Harald Sitter from comment #8)
> run typeName string through QString as utf8 not latin1
>
> it contains the localized name, not the latin1 base
>
> M +1 -1 src/dependencyinfo.cpp
>
> http://commits.kde.org/libqapt/ca47d57cd44f40bfe774ab2c15b442467cbca8b1
Great! Thanks for the effort!

Revision history for this message
In , V字龍(Vdragon) (vdragon) wrote :

Just leave a note that I've tested the patch and confirmed that it's working, thanks again!

Changed in muon:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.