mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-21 16:38:06 -06:00
Bug 798991 - Incorrect Account Name Order in Transaction Report
gnc:string-locale<? uses glib instead of guile string compare
This commit is contained in:
parent
f2d9230299
commit
2a392633ed
@ -104,6 +104,8 @@ const char * gnc_locale_default_iso_currency_code (void);
|
||||
%newobject gnc_locale_name;
|
||||
gchar *gnc_locale_name (void);
|
||||
|
||||
int g_utf8_collate (const char *a, const char *b);
|
||||
|
||||
#if defined(SWIGGUILE)
|
||||
%init {
|
||||
{
|
||||
|
@ -75,8 +75,8 @@
|
||||
(issue-deprecation-warning "Using _ to call gettext is disallowed in guile-3 and will be removed in the future. Use G_ instead.")
|
||||
(gnc:gettext x))))
|
||||
|
||||
(define gnc:string-locale<? string-locale<?)
|
||||
(define gnc:string-locale>? string-locale>?)
|
||||
(define (gnc:string-locale<? a b) (< (g-utf8-collate a b) 0))
|
||||
(define (gnc:string-locale>? a b) (> (g-utf8-collate a b) 0))
|
||||
|
||||
;; Custom unbound-variable exception printer: instead of generic "In
|
||||
;; procedure module-lookup: Unbound variable: varname", it will first
|
||||
|
Loading…
Reference in New Issue
Block a user