diff options
author | Colin Watson <cjwatson@debian.org> | 2022-01-09 00:21:43 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2022-01-09 00:21:43 +0000 |
commit | 84b6689805b971b1a229f060a92658571c1daa07 (patch) | |
tree | 1d38e23d0f4300328321ac103146d02937d15ecb /NEWS.md | |
parent | 6df671bf23eefeee8fef5fc99516e99d5f37e015 (diff) |
lexgrog: Produce output in the user's locale
Fixes Debian bug #970482.
* src/whatis.c (simple_convert): Move to ...
* src/convert.c: ... here (new file). Rename to convert_to_locale, and
automatically handle setup/teardown of the iconv descriptor.
* src/convert.h: New file.
* src/whatis.c (display): Use convert_to_locale instead of
simple_convert.
(main): Remove setup/teardown of iconv descriptor, now handled
automatically by convert_to_locale.
* src/lexgrog_test.c (main): Convert name and whatis to the user's
locale.
* src/Makefile.am (lexgrog_SOURCES, whatis_SOURCES): Add convert.c and
convert.h.
* NEWS.md: Document this.
Diffstat (limited to 'NEWS.md')
-rw-r--r-- | NEWS.md | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -14,6 +14,7 @@ Fixes: * Fix potential crash in path searching if `getcwd` fails for reasons other than running out of memory. * Fix crash in `globbing` test tool if run with no non-option arguments. + * `lexgrog` now produces output in the user's locale. Improvements: |