Closed j1schmid closed 3 years ago
In my case, the variable LC_PAPER is empty. If the variable LC_PAPER is empty use the variable LANG.
$ echo $LC_PAPER
$ echo $LANG
fr_FR.UTF-8
You could do this:
if( ( env_locale = (char *)getenv( "LC_PAPER" ) ) == NULL ){
if( ( env_locale = (char *)getenv( "LANG" ) ) == NULL ){
env_locale = "";
}
}
Definitely the better solution to use the locale variable LANG as fallback. Thanks again. I hope now the "pull-request" is ready to merge.
Thank you for your contribution.
Default paper size (at app start) according to the locale variable LC_PAPER instead of LANG. On systems with system installation language en_US (locale variable LANG) may have another environment configuration for the paper format (locale variable LC_PAPER).