[libcxx] [test] Fix the monetary locale curr_symbol test on Windows, Apple and FreeBSD
authorMartin Storsjö <martin@martin.st>
Tue, 18 Jan 2022 09:48:27 +0000 (09:48 +0000)
committerMartin Storsjö <martin@martin.st>
Mon, 28 Feb 2022 21:41:14 +0000 (23:41 +0200)
commit1521162d788a297531e18ddb8cf9a901ac8689a2
tree3a71875834a541d1ee5b0087ee883f2fabe3c0bd
parent092f15ac40ce35d077e0225a4462bc4dfa379391
[libcxx] [test] Fix the monetary locale curr_symbol test on Windows, Apple and FreeBSD

International currency symbols (like USD, EUR) are returned with a
trailing space, like "USD ", on previously supported Unix platforms.
On Windows, the locales return them without a trailing space.

Also adjust the test for expecting a different unicode sequence for
the national currency symbol for ru_RU.UTF-8 and zh_CN.UTF-8.

Differential Revision: https://reviews.llvm.org/D120547
libcxx/test/std/localization/locale.categories/category.monetary/locale.moneypunct.byname/curr_symbol.pass.cpp