[Xfce-bugs] [Bug 4071] New: Strange check for '/' in user's locale in libxfce4util

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Sat May 10 09:48:36 CEST 2008


DO NOT REPLY TO THIS EMAIL.  Also, do not reply via email to the person
whose email is mentioned below.  To comment on this bug, please visit:
http://bugzilla.xfce.org/show_bug.cgi?id=4071

           Summary: Strange check for '/' in user's locale in libxfce4util
           Product: Xfce
           Version: unknown
          Platform: PC (x86_64)
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Medium
         Component: general
        AssignedTo: xfce-bugs at xfce.org
        ReportedBy: enrico.troeger at uvena.de


I was just about writing a German localized version of the Info text in
xfce4-about. While testing I noticed it isn't used at all.

After reading the code to get an idea what's going wrong, I noticed
something strange in xfce_localize_path_internal()
(libxfce4util/trunk/libxfce4util/xfce-i18n.c:95).
There is a check:

if (G_LIKELY (lang != NULL && strchr (lang, '/') != NULL))

I don't understand why lang should contain a '/'. This is why it
doesn't work for me. My locale is "de_DE.UTF-8".

If I run xfce4-about with
LANG=de_DE.UTF-8/ xfce4-about
it works because the check for the '/' is TRUE and the localized
version is used. But when are '/' are used in locales? I've never seen
this before.


-- 
Configure bugmail: http://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Xfce-bugs mailing list