summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-03-20 19:18:02 +0100
committerBruno Haible <bruno@clisp.org>2023-03-20 19:18:41 +0100
commitc70afa976a8f6583c6ea883f13d00b482699f248 (patch)
tree6240a4030026feb33fe38cdc6aebc85431d86c8e /tests
parentd25f915afb66e63d32f1feec94a0a9bbc87ff8a8 (diff)
downloadgnulib-c70afa976a8f6583c6ea883f13d00b482699f248.tar.gz
vasnwprintf: Port to older platforms without swprintf.
* m4/vasnprintf.m4 (gl_PREREQ_VASNWPRINTF): Test for swprintf. * lib/vasnprintf.c (TCHAR_T, DCHAR_IS_TCHAR, SNPRINTF): When WIDE_CHAR_VERSION and swprintf does not exist, use TCHAR_T = char, SNPRINTF = snprintf, and !DCHAR_IS_TCHAR. (VASNPRINTF): In this case, implement %ls and %lc directly. Adjust a couple of #if conditions. For the conversion from TCHAR_T[] to DCHAR_T[], use mbsrtowcs. * modules/vasnwprintf (Depends-on): Add mbsrtowcs.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions