Package: libfontconfig1 Version: 2.10.2-2 Severity: normal Tags: patch 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). Best regards, Martin -- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (500, 'testing'), (200, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.9-1-amd64 (SMP w/4 CPU cores) Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages libfontconfig1:amd64 depends on: ii fontconfig-config 2.10.2-2 ii libc6 2.17-7 ii libexpat1 2.1.0-4 ii libfreetype6 2.4.9-1.1 ii multiarch-support 2.17-7 libfontconfig1:amd64 recommends no packages. libfontconfig1:amd64 suggests no packages. -- no debconf information
diff -Nur a/src/fclang.c b/src/fclang.c --- a/src/fclang.c 2012-10-30 01:53:37.000000000 +0100 +++ b/src/fclang.c 2013-07-20 19:49:14.352195363 +0200 @@ -188,6 +188,7 @@ return NULL; if (FcStrCmpIgnoreCase (lang, (const FcChar8 *)"C") == 0 || + FcStrCmpIgnoreCase (lang, (const FcChar8 *)"C.UTF-8") == 0 || FcStrCmpIgnoreCase (lang, (const FcChar8 *)"POSIX") == 0) { result = FcStrCopy ((const FcChar8 *)"en");