Merge branch 'emacs-25' of git.savannah.gnu.org:/srv/git/emacs into emacs-25

This commit is contained in:
Eli Zaretskii 2016-04-08 16:55:34 +03:00
commit a75b9a6f22

View file

@ -596,8 +596,15 @@ - (NSColor *)colorUsingDefaultColorSpace
@try
{
/* It seems OS X should probably use UTF-8 everywhere.
'localeIdentifier' does not specify the encoding, and I can't
find any way to get the OS to tell us which encoding to use,
so hard-code '.UTF-8'. */
NSString *localeID = [NSString stringWithFormat:@"%@.UTF-8",
[locale localeIdentifier]];
/* Set LANG to locale, but not if LANG is already set. */
setenv("LANG", [[locale localeIdentifier] UTF8String], 0);
setenv("LANG", [localeID UTF8String], 0);
}
@catch (NSException *e)
{