mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02:00
Moved setlocale() at the beginning of initialization, should fix regexp
crashes with non-C locale. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2858 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
0c712801a0
commit
b38316c8ba
2 changed files with 9 additions and 2 deletions
|
|
@ -27,7 +27,6 @@
|
|||
#include "mainwindows.h"
|
||||
|
||||
#ifdef HAVE_NL_LANGINFO
|
||||
# include <locale.h>
|
||||
# include <langinfo.h>
|
||||
#endif
|
||||
|
||||
|
|
@ -155,7 +154,6 @@ void term_common_init(void)
|
|||
read_settings();
|
||||
|
||||
#if defined (HAVE_NL_LANGINFO) && defined(CODESET)
|
||||
setlocale(LC_CTYPE, "");
|
||||
if (strcmp(nl_langinfo(CODESET), "UTF-8") == 0) {
|
||||
term_type = TERM_TYPE_UTF8;
|
||||
term_set_input_type(TERM_TYPE_UTF8);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue