Bug 20667 - Locale-aware functions cause problems
Summary: Locale-aware functions cause problems
Status: RESOLVED INVALID
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-14 18:10 UTC by Fatih Aşıcı
Modified: 2009-03-16 19:26 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Fatih Aşıcı 2009-03-14 18:10:16 UTC
There are some places using the following locale-aware functions:

tolower
toupper
islower
isupper

In Turkish, lower case of 'I' letter is not 'i'. This causes serious problems in xserver. e.g. While xserver starts with the followine line:

BusId "pci:0:2:0"

it gives an error with the following:

BusId "PCI:0:2:0"

Because xserver converts PCI to pcı in tr_TR.UTF-8 locale.
Comment 1 Alan Coopersmith 2009-03-16 17:03:46 UTC
Are these functions using the locale even though Xorg never calls setlocale()?

According to the setlocale() documentation, the locale should be "C" or "POSIX",
using only ASCII characters, if setlocale() is not called.
Comment 2 Fatih Aşıcı 2009-03-16 19:26:04 UTC
You are right. Server does not call setlocale; but vboxmouse module does. After this module is loaded the locale changes. I will report this to VirtualBox developers.

Thanks.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.