<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - xdg-desktop-menu improperly check for vendor prefix on Estonian locale"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=70742">70742</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>portland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>xdg-desktop-menu improperly check for vendor prefix on Estonian locale
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>marmarek@mimuw.edu.pl
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>1.1.0
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>xdg-utils
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Portland
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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).</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>