Archaic wrote:
Is the following still relevant or is it ready to be pulled?

  <!-- FIXME: the xlib example will became obsolete real soon -->
<para>Some packages beyond LFS may also lack support for your chosen
locale. One example is the X library (part of the X Window System),
which outputs the following error message:</para>

<screen><computeroutput>Warning: locale not supported by Xlib, locale
set to C</computeroutput></screen>

Let's stay on the safe side and pretend that this is still relevant.

1) I cannot speak for XFree86
2) For Xorg 7, there is still a way to trigger this message by deviating from the book (testcase: ru_RU.utf8 when the book clearly recommends ru_RU.UTF-8) 3) I have not tested all available locales with explicitly spelled canonical charset yet. If you want to test this yourself, here is a simple test program:

/* gcc -o testlocale testlocale.c -lX11 */
/* Testcase: LANG=..... ./testlocale */
#include <locale.h>
#include <stdio.h>
#include <X11/X.h>

int main()
{
        if (!setlocale(LC_ALL, "")) {
                printf("Locale isn't supported by C library\n");
                return 1;
        }

        if (!XSupportsLocale()) {
                printf("Locale isn't supported by X library\n");
                return 1;
        }
}

--
Alexander E. Patrakov
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to