[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[formatting i18n 00/14] Fix i18n of formatted data
From: |
Ben Pfaff |
Subject: |
[formatting i18n 00/14] Fix i18n of formatted data |
Date: |
Sat, 19 Feb 2011 17:42:12 -0800 |
This series of patches fixes some encoding-related bugs in data formatting,
as well as speeding up data formatting.
I'll give this a few data for comments, then push it if I don't hear
back.
Thanks,
Ben.
Ben Pfaff (14):
Use new Gnulib function dtoastr() to format short, accurate real
numbers.
CROSSTABS: Eliminate redundant data copying.
PRINT: Use UTF-8 encoding for output to the output subsystem.
i18n: New function recode_byte().
i18n: Introduce C_ENCODING as replacement for LEGACY_NATIVE.
legacy-encoding: Remove.
format: Increase abstraction of fmt_number_style.
data-out: Make each converter responsible for storing null
terminator.
format: Create a new "struct fmt_affix" for prefix and suffix
strings.
format: Count prefix and suffix width in terms of display columns.
data-out: Reorganize output_Z() to be more easily understood.
pool: Support NULL pool argument to pool_alloc_unaligned().
data-out: Optimize and fix some bad assumptions.
data-out: Add test for non-ASCII custom currency formats.
Smake | 2 +
doc/dev/concepts.texi | 5 -
src/data/csv-file-writer.c | 8 +-
src/data/data-in.c | 21 ++--
src/data/data-in.h | 3 +-
src/data/data-out.c | 209 +++++++++++++++++++++----------
src/data/data-out.h | 9 +-
src/data/file-handle-def.c | 7 +-
src/data/file-handle-def.h | 3 +-
src/data/format.c | 162 +++++++++++++-----------
src/data/format.h | 41 ++++---
src/data/settings.c | 60 +++++-----
src/language/data-io/data-reader.h | 3 +-
src/language/data-io/print.c | 18 ++--
src/language/expressions/helpers.h | 1 +
src/language/expressions/operations.def | 6 +-
src/language/lexer/value-parser.c | 6 +-
src/language/stats/crosstabs.q | 13 +--
src/language/utilities/set.q | 16 ++--
src/language/xforms/recode.c | 5 +-
src/libpspp/automake.mk | 2 -
src/libpspp/i18n.c | 16 +++-
src/libpspp/i18n.h | 7 +
src/libpspp/legacy-encoding.c | 41 ------
src/libpspp/legacy-encoding.h | 34 -----
src/libpspp/pool.c | 5 +-
src/output/tab.c | 7 +-
src/ui/gui/text-data-import-dialog.c | 4 +-
src/ui/syntax-gen.c | 24 ++---
tests/data/data-out.at | 36 ++++++
30 files changed, 420 insertions(+), 354 deletions(-)
delete mode 100644 src/libpspp/legacy-encoding.c
delete mode 100644 src/libpspp/legacy-encoding.h
--
1.7.2.3
- [formatting i18n 00/14] Fix i18n of formatted data,
Ben Pfaff <=
- [formatting i18n 03/14] PRINT: Use UTF-8 encoding for output to the output subsystem., Ben Pfaff, 2011/02/19
- [formatting i18n 01/14] Use new Gnulib function dtoastr() to format short, accurate real numbers., Ben Pfaff, 2011/02/19
- [formatting i18n 04/14] i18n: New function recode_byte()., Ben Pfaff, 2011/02/19
- [formatting i18n 10/14] format: Count prefix and suffix width in terms of display columns., Ben Pfaff, 2011/02/19
- [formatting i18n 08/14] data-out: Make each converter responsible for storing null terminator., Ben Pfaff, 2011/02/19
- [formatting i18n 12/14] pool: Support NULL pool argument to pool_alloc_unaligned()., Ben Pfaff, 2011/02/19
- [formatting i18n 14/14] data-out: Add test for non-ASCII custom currency formats., Ben Pfaff, 2011/02/19
- [formatting i18n 11/14] data-out: Reorganize output_Z() to be more easily understood., Ben Pfaff, 2011/02/19
- [formatting i18n 02/14] CROSSTABS: Eliminate redundant data copying., Ben Pfaff, 2011/02/19
- [formatting i18n 06/14] legacy-encoding: Remove., Ben Pfaff, 2011/02/19