File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -1242,6 +1242,9 @@ main (int argc, char **argv)
1242
1242
char * lc_all = getenv ("LC_ALL" );
1243
1243
if (! (lc_all && strcmp (lc_all , "C" ) == 0 ))
1244
1244
{
1245
+ #ifdef HAVE_NS
1246
+ ns_init_locale ();
1247
+ #endif
1245
1248
setlocale (LC_ALL , "" );
1246
1249
fixup_locale ();
1247
1250
}
@@ -1610,10 +1613,6 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem
1610
1613
1611
1614
#ifdef HAVE_NS
1612
1615
ns_pool = ns_alloc_autorelease_pool ();
1613
- #ifdef NS_IMPL_GNUSTEP
1614
- /* GNUstep stupidly resets our locale settings after we made them. */
1615
- fixup_locale ();
1616
- #endif
1617
1616
1618
1617
if (!noninteractive )
1619
1618
{
@@ -1724,11 +1723,6 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem
1724
1723
globals_of_gfilenotify ();
1725
1724
#endif
1726
1725
1727
- #ifdef HAVE_NS
1728
- /* Initialize the locale from user defaults. */
1729
- ns_init_locale ();
1730
- #endif
1731
-
1732
1726
/* Initialize and GC-protect Vinitial_environment and
1733
1727
Vprocess_environment before set_initial_environment fills them
1734
1728
in. */
You can’t perform that action at this time.
0 commit comments