Bug 101605 - Treat C.UTF-8 and C.utf8 locales as built in the C library.
Summary: Treat C.UTF-8 and C.utf8 locales as built in the C library.
Status: RESOLVED FIXED
Alias: None
Product: fontconfig
Classification: Unclassified
Component: library (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: fontconfig-bugs
QA Contact: Behdad Esfahbod
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-27 09:41 UTC by Laurent Bigonville
Modified: 2017-06-27 12:22 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Patch (898 bytes, patch)
2017-06-27 09:43 UTC, Laurent Bigonville
Details | Splinter Review
Patch (897 bytes, patch)
2017-06-27 09:45 UTC, Laurent Bigonville
Details | Splinter Review

Description Laurent Bigonville 2017-06-27 09:41:10 UTC
Hi,

In debian we have the following attached patch resulting from bug[0]:

===
When the C.UTF-8 locale is used (i.e. LC_CTYPE=C.UTF-8 or LANG=C.UTF-8),
programs using fontconfig print the message

  Fontconfig warning: ignoring C.UTF-8: not a valid language tag

on standard error serveral times. For example, Emacs prints the warning
ten times during startup.

The attached patch fixes the issue for me. It is based on the assumption
that C.UTF-8 should be treated like the other locale names built into the
C library (C and POSIX).
===


[0]https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=717423
Comment 1 Laurent Bigonville 2017-06-27 09:43:46 UTC
Created attachment 132278 [details] [review]
Patch
Comment 2 Laurent Bigonville 2017-06-27 09:45:04 UTC
Created attachment 132279 [details] [review]
Patch
Comment 3 Akira TAGOH 2017-06-27 12:22:02 UTC
merged into git.


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.