[Portland-bugs] [Bug 70742] New: xdg-desktop-menu improperly check for vendor prefix on Estonian locale

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Oct 21 15:35:12 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=70742

          Priority: medium
            Bug ID: 70742
          Assignee: portland-bugs at lists.freedesktop.org
           Summary: xdg-desktop-menu improperly check for vendor prefix on
                    Estonian locale
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: marmarek at mimuw.edu.pl
          Hardware: All
            Status: NEW
           Version: 1.1.0
         Component: xdg-utils
           Product: Portland

On Estonian locale this can happen:
xdg-desktop-menu: filename 'Uss-vm.directory' does not have a proper vendor
prefix
A vendor prefix consists of alpha characters ([a-zA-Z]) and is terminated with
a dash ("-"). An example filename is 'example-Uss--vm.directory'
Use --novendor to override or 'xdg-desktop-menu --manual' for additional info.

The reason is usage of [a-zA-Z] in check_vendor_prefix function, without
specifying explicit locale. In case of Estonian, 'z' isn't the last letter...

Simple check:
$ echo 'w' | LC_COLLATE=C grep -q '[a-zA-Z]'; echo $?
0
$ echo 'w' | LC_COLLATE=et_EE grep -q '[a-zA-Z]'; echo $?
1

It should either use explicit locale, or use '[[:alpha:]]' instead. Not sure
which is better (and more compliant with the standard).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/portland-bugs/attachments/20131021/69a2ef31/attachment.html>


More information about the Portland-bugs mailing list