]> granicus.if.org Git - curl/commit
unittest: make 1652 stable across collations
authorDaniel Gustafsson <daniel@yesql.se>
Mon, 5 Nov 2018 08:51:33 +0000 (09:51 +0100)
committerDaniel Gustafsson <daniel@yesql.se>
Mon, 5 Nov 2018 08:51:33 +0000 (09:51 +0100)
commit60e3d1f2102f226e2f1514f4f3d4c31b2022f957
tree0ef3ced186454455a2d6412b9e29a2c317c1a017
parentd9abebc7ee2a4cfde42c790ae97a2d8c6911f3a9
unittest: make 1652 stable across collations

The previous coding used a format string whose output depended on the
current locale of the environment running the test. Since the gist of
the test is to have a format string, with the actual formatting being
less important, switch to a more stable formatstring with decimals.

Reported-by: Marcel Raad
Closes #3234
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
Reviewed-by: Marcel Raad <Marcel.Raad@teamviewer.com>
tests/unit/unit1652.c