You are absolutely right. "GnuCash does not cover all aspects
of multiple currencies yet", this is a quotation out of the
documentation. In fact it covers very few aspects.

There is an other problem: the status bar. If in your example

> export LC_ALL=; export LANG=C
> 
> Displays in gnucash:
> 
> account name    currency        balance
> ---------------------------------------
> usbank          USD             $1000
> swissbank       CHF             $2000

usbank and swissbank are normal bank accounts (not currency accounts)
the assets value in the status bar gets $3000, which is nonsense, too.

> Another problem with the second solution is, that the routines dealing
> with the balance:
> 
> xaccPrintAmount()
> xaccSPrintAmount()
> gnc_localeconv()
> 
> don't give a frogs eye about their context, so that would be additional 
> trouble, to carry the correct context through all of them.

Yes. In my opinion the currency symbol should not be based on locale, but
on the account's curenncy field. this would require an additional
parameter to the ...PrintAmount() functions.

> I'm ready to try to figure out a patch. Any opinions?
> *t

The "main developers" are currently at the comdex (17. April - 20. April),
so I would wait with a patch until the main developers (Linas Vepstas, Dave
Peticolas, Rob Browning, and others) have commented to your RFC.

 Herbert.
-- 
Herbert Thoma
FhG-IIS A, Studio Department
Am Weichselgarten3, 91058 Erlangen, Germany
Phone: +49-9131-776-323
Fax:   +49-9131-776-399
email: [EMAIL PROTECTED]
www: http://www.iis.fhg.de/

--
Gnucash Developer's List 
To unsubscribe send empty email to: [EMAIL PROTECTED]


Reply via email to