projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PRINT: Use UTF-8 encoding for output to the output subsystem.
[pspp-builds.git]
/
src
/
language
/
data-io
/
print.c
diff --git
a/src/language/data-io/print.c
b/src/language/data-io/print.c
index cfbe04396191e5b1f7098f0b7df40ce6fac29edf..1bcd047763f25cdba3d6f6509216b0ec0adc5ffa 100644
(file)
--- a/
src/language/data-io/print.c
+++ b/
src/language/data-io/print.c
@@
-1,5
+1,5
@@
/* PSPP - a program for statistical analysis.
/* 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
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 = dfm_writer_get_legacy_encoding (trns->writer);
}
else
- trns->encoding =
LEGACY_NATIVE
;
+ trns->encoding =
UTF8
;
/* Output the variable table if requested. */
if (print_table)
/* Output the variable table if requested. */
if (print_table)
@@
-280,7
+280,7
@@
parse_string_argument (struct lexer *lexer, struct print_trns *trns, int record,
spec->type = PRT_LITERAL;
spec->record = record;
spec->first_column = *column;
spec->type = PRT_LITERAL;
spec->record = record;
spec->first_column = *column;
- ds_init_s
tring (&spec->string, lex_tokstr
(lexer));
+ ds_init_s
ubstring (&spec->string, lex_tokss
(lexer));
ds_register_pool (&spec->string, trns->pool);
lex_get (lexer);
ds_register_pool (&spec->string, trns->pool);
lex_get (lexer);