]> www.wagner.pp.ru Git - oss/catdoc.git/commit
Fix handling of dest charsets with chars > u7FFF and missing chasets
authorVictor Wagner <vitus@wagner.pp.ru>
Sat, 15 Nov 2025 08:35:00 +0000 (11:35 +0300)
committerVictor Wagner <vitus@wagner.pp.ru>
Sat, 15 Nov 2025 08:46:19 +0000 (11:46 +0300)
commite1b370f6269a0bffac54fe20dfcb7ecc3d1a5fc1
tree4320b404bbb24823a7a1f680bcd2fe0a55d7db9d
parent38a2807d22ce1a08bc39b94e9072a9f8f52cd86f
Fix handling of dest charsets with chars > u7FFF and missing chasets

Prevoisly, if unexisting charset was specified in the command line,
catdoc/xls2csv/catppt silently falls back to default charset. Now it
exits with non-zero exit code and appropriate message

It was also found that in make_reverse_map unicode code was incorrectly
casted to (unsigned) instead of (unsigned short) which cause segfault
if charater with 16-bit unicode code highest bit set present in the
destination charset (i.e. in mac-roman).
src/catdoc.h
src/charsets.c
src/confutil.c
src/fileutil.c