Bug 8475

Summary: Installer shows incorrectly capital letters
Product: Mageia Reporter: Kamil Rytarowski <n54>
Component: InstallerAssignee: Thierry Vignaud <thierry.vignaud>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: Normal CC: thierry.vignaud
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:
Attachments: screenshot

Description Kamil Rytarowski 2012-12-22 12:15:30 CET
Description of problem:
Installer shows incorrectly capital letters, at least in the Polish language

"PROSZÄ CZEKAÄ" instead of "PROSZÄ CZEKAÄ" or "ProszÄ czekaÄ"

The strings are correct
draklive-install/trunk/po/pl.po:msgstr "ProszÄ czekaÄ"

Version-Release number of selected component (if applicable):
Mga3 Beta1

How reproducible:
Always

Steps to Reproduce:
1. Boot .iso
2. Select Polish
3.
Comment 1 Kamil Rytarowski 2012-12-22 12:16:08 CET
Created attachment 3276 [details]
screenshot
Comment 2 Manuel Hiebel 2012-12-22 12:23:02 CET
it's more this .po http://svnweb.mageia.org/soft/drakx/trunk/perl-install/share/po/pl.po?view=markup but indeed it seems ok

CC: (none) => thierry.vignaud
Severity: normal => minor

Comment 3 Thierry Vignaud 2012-12-22 16:33:41 CET
we use the uc() function to upcase titles.
Depending on the pragma, result differs:

$ perl -e '$s = "ProszÄ czekaÄ\n"; warn $s, uc($s)'
ProszÄ czekaÄ
PROSZÄ CZEKAÄ
$ perl -Mutf8 -e '$s = "ProszÄ czekaÄ - Wybór noÅników \n"; warn $s, uc($s)'
ProszÄ czekaÄ - Wybór noÅników 
PROSZÄ CZEKAÄ - WYBÃR NOÅNIKÃW 
$ perl -Mlocale -e '$s = "ProszÄ czekaÄ - Wybór noÅników \n"; warn $s, uc($s)'
ProszÄ czekaÄ - Wybór noÅników 
PROSZÄ CZEKAÄ - WYBóR NOÅNIKóW 
$ perl -Mutf8 -Mlocale -e '$s = "ProszÄ czekaÄ - Wybór noÅników \n"; warn $s, uc($s)'
ProszÄ czekaÄ - Wybór noÅników 
PROSZÄ CZEKAÄ - WYBóR NOÅNIKóW 

using 'no locale' or "use locale ':not_characters'" also works in a one liner.
However, it doesn't in drakx (yet)

Assignee: bugsquad => thierry.vignaud

Comment 4 Thierry Vignaud 2012-12-22 20:09:33 CET
OK, issue is that translated strings are not tagged as UTF-8 at perl level.
I need to evaluate the consequences.

Status: NEW => ASSIGNED

Comment 5 Thierry Vignaud 2012-12-23 13:10:33 CET
We were missing unicore/To/Uc.pl

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED

Comment 6 Kamil Rytarowski 2012-12-23 13:17:58 CET
Thanks