mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04: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,6 +77,7 @@ CODE:
|
||||
|
||||
str = settings_get_str(key);
|
||||
RETVAL = new_pv(str);
|
||||
if (is_utf8())
|
||||
SvUTF8_on(RETVAL);
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
|
Loading…
Reference in New Issue
Block a user