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 342768 - Equity statement report broken under russian locale
Equity statement report broken under russian locale
Status: VERIFIED INCOMPLETE
Product: GnuCash
Classification: Other
Component: Reports
1.9.x
Other Linux
: Normal normal
: ---
Assigned To: Chris Lyttle
Chris Lyttle
Depends on:
Blocks:
 
 
Reported: 2006-05-24 06:35 UTC by Vaclav Naydionov
Modified: 2018-06-29 21:05 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Vaclav Naydionov 2006-05-24 06:35:22 UTC
Equity statement report works somehow under neutral locale LANG=C,
but it breaks under LANG=ru_RU.UTF-8 leaving all of the menus
and toolbars DISABLED.
The worst thing is that when the app is restarted the report windows
automatically reopened (why is this the default behavior?)
producing the same effect.
The only cure is to edit ~/.gnucash/books/<bookname> by hand
to remove report page.

There are also messages on the terminal:

(gnucash:7749): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

(gnucash:7749): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()
requesting object classid: gnc-guppi-pie
*** attempt to put segment in horiz list twice
*** attempt to put segment in horiz list twice
*** attempt to put segment in horiz list twice
object_found: 1
requesting object classid: gnc-guppi-pie
object_found: 1

;;; WARNING (wrong arguments for gnc:make-gnc-monetary:  #f #<<gnc-numeric> num: 0 denom: 1>)
In unknown file:
   ?: 22  (letrec (# #) (gnc:report-percent-done 4) (set! start-asset-balance #) ...)
In /usr/local/share/gnucash/guile-modules/gnucash/report/equity-statement.scm:
 596: 23* [report-line # "Investments for Period" #f ...]
 352: 24  (let* (# # # ...) (gnc:html-table-add-labeled-amount-line! table 3 ...))
 364: 25* [gnc:sum-collector-commodity #<procedure #f #> # #<procedure #f #>]
In /usr/local/share/gnucash/scm/commodity-utilities.scm:
 887: 26  (cond ((and foreign exchange-fn) (let (#) (foreign # # ...) ...)) (#t #f))
 888: 27  (let ((balance #)) (foreign (quote format) (lambda # #) ...) ...)
 889: 28* [#<procedure #f #> format #<procedure #f #> #f]
In /usr/local/share/gnucash/scm/report-utilities.scm:
 438: 29  (case action ((add) (add-commodity-value commodity amount)) ...)
In unknown file:
    ...
   ?: 30  (let ((ret (list #))) (letrec ((lp #)) (lp (cdr ls) ret)))
   ?: 31* [list ...
   ?: 32*  [#<procedure #f (pair)> (#f #<procedure #f (action amount)>)]
In /usr/local/share/gnucash/scm/report-utilities.scm:
 405: 33   [#<procedure #f (curr val)> #f #<<gnc-numeric> num: 0 denom: 1>]
In /usr/local/share/gnucash/scm/commodity-utilities.scm:
     ...
 894: 34   [#<procedure #f #> add # ...
 895: 35*   [gnc:gnc-monetary-amount ...
 899: 36*    [#<procedure #f #> # #]
 679: 37     (if foreign (or # # #) #f)
       ...
 682: 38     [gnc:make-gnc-monetary #<gw:wcp <gnc:commodity*> 0x999db28> ...
 684: 39*     (let ((pair #)) (if (not pair) (gnc:numeric-zero) ...))
 686: 40      (if (not pair) (gnc:numeric-zero) ...)
 688: 41      [gnc:numeric-mul #f # 100 ...]
/usr/local/share/gnucash/scm/commodity-utilities.scm:688:24: In procedure gnc:numeric-mul in expression (gnc:numeric-mul (gnc:gnc-monetary-amount foreign) (cadr pair) ...):
/usr/local/share/gnucash/scm/commodity-utilities.scm:688:24: Wrong type argument in position 1: #f
update flow align
Comment 1 Christian Stimming 2006-05-24 08:40:39 UTC
The disabled GUI elements are reported in bug#341610 and clearly need to be fixed before 2.0.0.

As for the report that works under LANG=C and breaks in LANG=ru_RU.UTF-8: This is clearly a bug that needs to be fixed as well (although probably not as urgently). In order for us to reproduce this easily, could you add a (small) sample gnucash file, together with detailed instructions on how to run such a report and see this problem? That would help a lot. Thanks.
Comment 2 Christian Stimming 2006-05-24 15:57:15 UTC
The "hang" has been fixed in SVN r14178, which will be in 1.9.7.
Comment 3 Christian Stimming 2006-09-18 11:46:13 UTC
Could you add a (small)
sample gnucash file, together with detailed instructions on how to run such a
report and see this problem? That would help a lot. Thanks.
Comment 4 Christian Stimming 2006-10-10 08:51:35 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for.
Thanks!
Comment 5 John Ralls 2018-06-29 21:05:18 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=342768. Please update any external references or bookmarks.