X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=perl-module%2FPSPP.xs;h=74ea561170b00b3b16917aa8fe1c5a2c9fa24309;hb=08767a7c0d9b6f719c307baa8d264f989a65d7a3;hp=7577b7ad2c7be4d54b37fad06013aca3d6be0332;hpb=63c7521729b947ace9e192dff9330813ecfb5812;p=pspp diff --git a/perl-module/PSPP.xs b/perl-module/PSPP.xs index 7577b7ad2c..74ea561170 100644 --- a/perl-module/PSPP.xs +++ b/perl-module/PSPP.xs @@ -17,6 +17,7 @@ 02110-1301, USA. */ +#undef VERSION #include /* The Gnulib "strftime" module defines my_strftime in for use by @@ -32,6 +33,8 @@ #include "ppport.h" #include "minmax.h" +#include +#include #include #include #include @@ -638,7 +641,7 @@ INIT: } CODE: struct file_handle *fh = - fh_create_file (NULL, name, fh_default_properties () ); + fh_create_file (NULL, name, "UTF-8", fh_default_properties () ); struct syswriter_info *swi = xmalloc (sizeof (*swi)); swi->writer = sfm_open_writer (fh, dict->dict, opts); swi->dict = dict; @@ -752,7 +755,7 @@ CODE: struct casereader *reader; struct sysreader_info *sri = NULL; struct file_handle *fh = - fh_create_file (NULL, name, fh_default_properties () ); + fh_create_file (NULL, name, "UTF-8", fh_default_properties () ); struct dictionary *dict; sri = xmalloc (sizeof (*sri));