summaryrefslogtreecommitdiff
path: root/src/perl/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/perl/common')
-rw-r--r--src/perl/common/Settings.xs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/perl/common/Settings.xs b/src/perl/common/Settings.xs
index 11a48bb6..624f1102 100644
--- a/src/perl/common/Settings.xs
+++ b/src/perl/common/Settings.xs
@@ -68,11 +68,12 @@ void perl_settings_deinit(void)
MODULE = Irssi::Settings PACKAGE = Irssi
PROTOTYPES: ENABLE
-char *
+SV *
settings_get_str(key)
char *key
CODE:
- RETVAL = (char *) settings_get_str(key);
+ RETVAL = newSVpv(settings_get_str(key), 0);
+ SvUTF8_on(RETVAL);
OUTPUT:
RETVAL