From: Ben Pfaff Date: Sun, 20 Feb 2011 00:55:58 +0000 (-0800) Subject: PRINT: Use UTF-8 encoding for output to the output subsystem. X-Git-Tag: v0.7.7~53 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9d0b49f59af300be5600141a0096b26c96abce9;p=pspp-builds.git PRINT: Use UTF-8 encoding for output to the output subsystem. All string data coming into the output subsystem must be encoded in UTF-8, but PRINT was recoding it into ASCII instead. --- diff --git a/src/language/data-io/print.c b/src/language/data-io/print.c index 96ac15e1..1bcd0477 100644 --- a/src/language/data-io/print.c +++ b/src/language/data-io/print.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 1997-9, 2000, 2006, 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 1997-9, 2000, 2006, 2009, 2010, 2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -200,7 +200,7 @@ internal_cmd_print (struct lexer *lexer, struct dataset *ds, trns->encoding = dfm_writer_get_legacy_encoding (trns->writer); } else - trns->encoding = LEGACY_NATIVE; + trns->encoding = UTF8; /* Output the variable table if requested. */ if (print_table)