mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Turn on the utf8 status only if the charset is utf8.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4370 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
a7b0e6b3f2
commit
f6f4941968
@ -1,5 +1,6 @@
|
||||
#include "module.h"
|
||||
#include "misc.h"
|
||||
#include "recode.h"
|
||||
|
||||
static GHashTable *perl_settings;
|
||||
|
||||
@ -76,7 +77,8 @@ CODE:
|
||||
|
||||
str = settings_get_str(key);
|
||||
RETVAL = new_pv(str);
|
||||
SvUTF8_on(RETVAL);
|
||||
if (is_utf8())
|
||||
SvUTF8_on(RETVAL);
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user