gri3-wm/man
Michael Stapelberg 67999269fd manpage: improve locale setup in example .xsession (Thanks Harald König)
Harald mentioned he was surprised about the locales we recommend in the
.xsession example, so I’ve re-investigated.

Here is the test program I have used:

    #include <stdio.h>
    #include <locale.h>

    int main() {
        /* SUSv2 setlocale(3) says:
         * Internationalised programs must call setlocale() to initiate
         * a specific language operation. This can be done by calling
         * setlocale() as follows: */
        setlocale(LC_ALL, "");

        printf("LC_NUMERIC is %s\n", setlocale(LC_NUMERIC, NULL));
    }

Then, I have unset LANG and LC_*:

    midna /tmp $ env | grep LANG
    midna /tmp $ env | grep LC
    midna /tmp $

Now, observe that LC_ALL overwrites all specific LC variables:

    midna /tmp $ LC_ALL=de_DE.UTF-8 LC_NUMERIC=en_DK.UTF-8 ./localetest
    LC_NUMERIC is de_DE.UTF-8

However, LANG does not:

    midna /tmp $ LANG=de_DE.UTF-8 ./localetest
    LC_NUMERIC is de_DE.UTF-8
    midna /tmp $ LANG=de_DE.UTF-8 LC_NUMERIC=en_DK.UTF-8 ./localetest
    LC_NUMERIC is en_DK.UTF-8

This is consistent with what perldoc perllocale says:
http://perldoc.perl.org/perllocale.html#ENVIRONMENT
2012-08-27 15:07:18 +02:00
..
Makefile Move mans to the new Makefile layout 2012-07-22 20:27:13 +02:00
asciidoc.conf bump manpage version 2012-01-27 19:23:56 +00:00
i3-config-wizard.man add a manpage for i3-config-wizard 2011-07-31 23:08:25 +02:00
i3-dump-log.man i3: Replace loglevels by a global debug logging 2012-07-22 18:41:12 +02:00
i3-input.man a few little corrections for the previous commit 2012-04-23 23:21:51 +02:00
i3-migrate-config-to-v4.man add a manpage for i3-migrate-config-to-v4 2011-07-31 23:22:50 +02:00
i3-msg.man ipc: implement GET_VERSION to find out the i3 version 2012-08-05 14:30:05 +02:00
i3-nagbar.man add i3-nagbar. tells you about config file errors (for example) 2011-07-10 14:33:19 +02:00
i3-sensible-editor.man update i3-sensible-* (Thanks Han) 2011-12-29 00:01:49 +01:00
i3-sensible-pager.man update i3-sensible-* (Thanks Han) 2011-12-29 00:01:49 +01:00
i3-sensible-terminal.man Add xfce4-terminal to i3-sensible-terminal 2012-08-02 15:20:17 +02:00
i3.man manpage: improve locale setup in example .xsession (Thanks Harald König) 2012-08-27 15:07:18 +02:00
i3bar.man i3bar: update manpage for the i3bar-protocol 2012-08-12 19:26:04 +02:00
man.mk Move mans to the new Makefile layout 2012-07-22 20:27:13 +02:00