#if out undocumented Polish and Lithuanian mystery code
This commit is contained in:
parent
28862e3311
commit
2aaa84ddf7
1 changed files with 9 additions and 8 deletions
|
|
@ -860,17 +860,18 @@ static void show_locale_usage(FILE * f, const char * const prg)
|
||||||
|
|
||||||
static void setup_language(const char * const prg)
|
static void setup_language(const char * const prg)
|
||||||
{
|
{
|
||||||
if (langstr == NULL && getenv("LANG") != NULL &&
|
|
||||||
strncasecmp(getenv("LANG"), "lt_LT", 5) == 0)
|
|
||||||
{
|
|
||||||
set_langstr("lithuanian");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (langstr == NULL && getenv("LANG") != NULL &&
|
// Justify this or delete it. It seems to make Tux Paint
|
||||||
strncasecmp(getenv("LANG"), "pl_PL", 5) == 0)
|
// violate the behavior documented by "man 7 locale".
|
||||||
|
#if 0
|
||||||
|
if (langstr == NULL && getenv("LANG"))
|
||||||
{
|
{
|
||||||
set_langstr("polish");
|
if(!strncasecmp(getenv("LANG"), "lt_LT", 5))
|
||||||
|
set_langstr("lithuanian");
|
||||||
|
if(!strncasecmp(getenv("LANG"), "pl_PL", 5))
|
||||||
|
set_langstr("polish");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (langstr != NULL)
|
if (langstr != NULL)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue