Bug 231550 - Wrong charset in camera configuration settings (French)
Summary: Wrong charset in camera configuration settings (French)
Status: RESOLVED UPSTREAM
Alias: None
Product: i18n
Classification: Translations
Component: fr (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Anne-Marie Mahfouf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-21 15:08 UTC by Patrick Rouzet
Modified: 2010-04-13 19:58 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot (38.04 KB, image/png)
2010-03-21 15:10 UTC, Patrick Rouzet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Rouzet 2010-03-21 15:08:49 UTC
Version:            (using KDE 4.4.1)
Compiler:          gcc version 4.3.4 (Gentoo 4.3.4 p1.1, pie-10.1.5) 
OS:                Linux
Installed from:    Gentoo Packages

I'm using KDE 4.4.1 (Gentoo Linux) with French localization.
My system is configured to use UTF-8:
LANG="fr_FR.UTF-8"
LANGUAGE="fr_FR.UTF-8"

Steps to reproduce:
- Run system settings
- Add a camera: Canon PowerShot A710 IS (PTP)
- Click on Configure icon, select second tab: 'é' character is displayed with wrong charset (probably considering UTF-8 character as ISO-8859-1 bytes)
Comment 1 Patrick Rouzet 2010-03-21 15:10:05 UTC
Created attachment 41803 [details]
Screenshot
Comment 2 Patrick Rouzet 2010-03-21 15:13:11 UTC
The same charset issue happens in the window displayed when clicking on Information icon (to get model, serial number, etc)
Comment 3 Anne-Marie Mahfouf 2010-04-09 15:54:41 UTC
I don't see the strings you mention which are not utf8. Maybe they come from GPhoto.

The camera kcm translation file for KDE 4.4 branch is located at
http://websvn.kde.org/branches/stable/l10n-kde4/fr/messages/kdegraphics/kcmkamera.po?revision=1084992&view=markup

so you can have a look yourself.
Can you use grep and somehow see where those messages come from? Thanks in advance!
Comment 4 Patrick Rouzet 2010-04-09 19:37:38 UTC
Actually these messages are not in your file and I just found these strings in libgphoto2 sources available on sourceforge:

http://gphoto.svn.sourceforge.net/viewvc/gphoto/branches/libgphoto2-2_4/libgphoto2/po/fr.po?revision=12156&view=markup

fr.po file contains "Content-Type: text/plain; charset=ISO-8859-1" and the French strings are encoded as ISO-8859-1, which seems consistent for this translation file.

Does it mean that the bug is in (lib)gphoto2 which should convert the strings into UTF-8 before providing them to KDE settings UI? Or does the conversion into the UI charset concern KDE part?
Comment 5 Patrick Rouzet 2010-04-09 20:02:19 UTC
Checking my configuration, I have all (?) env values set to UTF-8:

patrick ~ # env | grep fr_FR
LC_PAPER=fr_FR.UTF-8
LC_ADDRESS=fr_FR.UTF-8
LC_MONETARY=fr_FR.UTF-8
KEYMAP=fr_FR.UTF-8
LC_NUMERIC=fr_FR.UTF-8
LC_ALL=fr_FR.UTF-8
LC_TELEPHONE=fr_FR.UTF-8
LC_MESSAGES=fr_FR.UTF-8
LC_COLLATE=fr_FR.UTF-8
LANG=fr_FR.UTF-8
LC_MEASUREMENT=fr_FR.UTF-8
LANGUAGE=fr_FR.UTF-8
LC_CTYPE=fr_FR.UTF-8
LC_TIME=fr_FR.UTF-8
LC_NAME=fr_FR.UTF-8
Comment 6 Anne-Marie Mahfouf 2010-04-09 20:48:11 UTC
yes the libgphoto2 files should be utf8. Can you file a bug report to them about this? UTF8 ensures that any language can be render correctly which is why we use it in a project like KDE.

In any case, thanks a lot for your very quick answer! I'm closing this report as the strings are not in KDE.
Comment 7 Patrick Rouzet 2010-04-13 19:58:39 UTC
FYI, bug reported in gPhoto bug tracker:
https://sourceforge.net/tracker/?func=detail&aid=2986632&group_id=8874&atid=108874