diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/nsterm.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nsterm.m b/src/nsterm.m index aa29c13eb22..19ed750d217 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -543,8 +543,10 @@ ns_init_locale (void) | |||
| 543 | NSString *localeID = [NSString stringWithFormat:@"%@.UTF-8", | 543 | NSString *localeID = [NSString stringWithFormat:@"%@.UTF-8", |
| 544 | [locale localeIdentifier]]; | 544 | [locale localeIdentifier]]; |
| 545 | 545 | ||
| 546 | /* Set LANG to locale, but not if LANG is already set. */ | 546 | /* Set LANG and LC_ALL to locale, but not if the variables are |
| 547 | already set. */ | ||
| 547 | setenv("LANG", [localeID UTF8String], 0); | 548 | setenv("LANG", [localeID UTF8String], 0); |
| 549 | setenv("LC_ALL", [localeID UTF8String], 0); | ||
| 548 | } | 550 | } |
| 549 | @catch (NSException *e) | 551 | @catch (NSException *e) |
| 550 | { | 552 | { |