public inbox for libc-locales@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Hryvnia locale currency symbol wrong
@ 2012-02-10  9:47 Jeff Law
  0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2012-02-10  9:47 UTC (permalink / raw)
  To: libc-locales

[-- Attachment #1: Type: text/plain, Size: 598 bytes --]

#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 #2: uk_UA.patch --]
[-- Type: text/plain, Size: 578 bytes --]

2012-01-01  Ashish Shah  <ashishks@redhat.com>

	* locales/uk_UA (currency_symbol): Fix.


--- glibc-2.5-20061008T1257.orig/localedata/locales/uk_UA	2010-09-30 17:42:09.000000000 +0530
+++ glibc-2.5-20061008T1257.orig/localedata/locales/uk_UA	2010-09-30 17:42:34.000000000 +0530
@@ -88,7 +88,7 @@ 
 
 LC_MONETARY
 int_curr_symbol           "<U0055><U0041><U0048><U0020>"
-currency_symbol           "<U0433><U0440>"
+currency_symbol           "<U0433><U0440><U043D><U002E>"
 mon_decimal_point         "<U002E>"
 mon_thousands_sep         "<U0020>"
 mon_grouping              3;3

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-02-10  9:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-10  9:47 [PATCH] Hryvnia locale currency symbol wrong Jeff Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).