Bug 101605

Summary: Treat C.UTF-8 and C.utf8 locales as built in the C library.
Product: fontconfig Reporter: Laurent Bigonville <bigon>
Component: libraryAssignee: fontconfig-bugs
Status: RESOLVED FIXED QA Contact: Behdad Esfahbod <freedesktop>
Severity: normal    
Priority: medium CC: akira
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Patch
Patch

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.