"git@gitlab.caltech.edu:cs24-19fa/git_rec_nano.git" did not exist on "4564170c6189d9ac23c4c745f4bf93b227bbaad2"
Commit ad1fd0d9 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

per Junichi Uekawa's patch in Debian's version of nano, call setlocale()

outside the ENABLE_NLS #ifdef, since UTF-8 support (specifically, the
wide character handling functions it needs) won't work properly if the
locale isn't set, whether NLS is enabled or not


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1865 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 4 additions and 1 deletion
+4 -1
......@@ -88,6 +88,9 @@ CVS code -
- Move the reset_cursor() call to the beginning of the main
input loop, and remove the apparently unnecessary wrefresh()
call. (David Benbennick)
- Call setlocale() outside the ENABLE_NLS #ifdef, since UTF-8
support won't work properly if the locale isn't set, whether
NLS is enabled or not. (Junichi Uekawa)
- nano.h:
- Reassign the key for full justification to Ctrl-U, for
compatibility with the current version of Pico. (DLR)
......
......@@ -3094,8 +3094,8 @@ int main(int argc, char *argv[])
};
#endif
#ifdef ENABLE_NLS
setlocale(LC_ALL, "");
#ifdef ENABLE_NLS
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment