This is the mail archive of the libc-locales@sourceware.org mailing list for the GNU libc locales project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Hryvnia locale currency symbol wrong


#include <stdio.h>
#include <locale.h>

int main()
{
 struct lconv *lv;

setlocale (LC_ALL, "");
lv = localeconv();
fprintf (stdout, "Currency symbol for locale: %s\n", lv->currency_symbol);
fprintf (stdout, "Intl currency sym for locale: %s\n", lv->int_curr_symbol);
return 0;
}



cc -o cursym cursym.c


$ LC_ALL=uk_UA.UTF-8 ./cursym
Currency symbol for locale: ÐÑ
Intl currency sym for locale: UAH

Per:
http://std.dkuug.dk/JTC1/SC2/WG2/docs/n2743.pdf
http://en.wikipedia.org/wiki/Ukrainian_hryvnia

currency_symbol should be ÐÑÐ.

Attached patch resolves this issue.

Attachment: uk_UA.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]