(set-locale-environment): Ignore
empty values of environment variables.
This commit is contained in:
parent
56cfa2440e
commit
db6bd804ad
1 changed files with 3 additions and 2 deletions
|
@ -2187,8 +2187,9 @@ See also `locale-charset-language-names', `locale-language-names',
|
|||
;; Use the first of these three environment variables
|
||||
;; that has a nonempty value.
|
||||
(let ((vars '("LC_ALL" "LC_CTYPE" "LANG")))
|
||||
(while (and vars (not (setq locale (getenv (car vars)))))
|
||||
(setq vars (cdr vars)))))
|
||||
(while (and vars
|
||||
(= 0 (length locale))) ; nil or empty string
|
||||
(setq locale (getenv (pop vars))))))
|
||||
|
||||
(when locale
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue