After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 89471 - no EUR symbol in "Accounts" window
no EUR symbol in "Accounts" window
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: User Interface General
git-master
Other Linux
: Normal normal
: ---
Assigned To: David Hampton
Chris Shoemaker
Depends on:
Blocks:
 
 
Reported: 2002-07-30 21:46 UTC by Christian Krause
Modified: 2018-06-29 20:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Krause 2002-07-30 21:46:19 UTC
Although the locale settings are correct (e.g. LC_ALL=de_DE@euro), the EUR
_symbol_ isn't displayed in the "Accounts" window.

Only if I apply this short patch, the symbols are displayed correctly.

gnucash/src/app-utils$ cvs diff gnc-ui-util.c 
Index: gnc-ui-util.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/app-utils/gnc-ui-util.c,v
retrieving revision 1.28
diff -u -r1.28 gnc-ui-util.c
--- gnc-ui-util.c       3 Jul 2002 05:59:51 -0000       1.28
+++ gnc-ui-util.c       30 Jul 2002 21:44:19 -0000
@@ -1016,9 +1016,9 @@
 
   if (lc_set)
     return &lc;
-
+  setlocale(LC_ALL, "");
   lc = *localeconv();
-
+  printf("debug: %s %s\n", lc.int_curr_symbol, lc.currency_symbol);
   gnc_lconv_set(&lc.decimal_point, ".");
   gnc_lconv_set(&lc.thousands_sep, ",");
   gnc_lconv_set(&lc.grouping, "\003");



It seems, that anything in the gnc locale subsystem is broken...

regards,
christian
Comment 1 Derek Atkins 2002-10-03 17:41:02 UTC
The actual problem is that (setlocale LC_ALL "") was too late in the
startup sequence in src/scm/main.scm.  Fixed in CVS.
Comment 2 John Ralls 2018-06-29 20:14:51 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=89471. Please update any external references or bookmarks.