Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 62524 Details for
Bug 97783
gnumeric ignores locale settings on amd64
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
This fixes it!
gnumeric-1.4.3-fix-set-locale.patch (text/plain), 1.42 KB, created by
João Rafael Moraes Nicola
on 2005-07-02 23:25:06 UTC
(
hide
)
Description:
This fixes it!
Filename:
MIME Type:
Creator:
João Rafael Moraes Nicola
Created:
2005-07-02 23:25:06 UTC
Size:
1.42 KB
patch
obsolete
>--- gnumeric-1.4.3/src/cut-n-paste-code/goffice/utils/go-math.c 2005-01-06 13:13:48.000000000 -0200 >+++ gnumeric-1.4.3-patched/src/cut-n-paste-code/goffice/utils/go-math.c 2005-07-03 02:48:52.000000000 -0300 >@@ -47,15 +47,17 @@ > if (go_pinf > 0 && !go_finite (go_pinf)) > goto have_pinf; > #endif > > /* Try sscanf with fixed strings. */ >- old_locale = setlocale (LC_ALL, "C"); >+ old_locale = strdup(setlocale (LC_ALL, NULL)); >+ setlocale (LC_ALL, "C"); > if (sscanf ("Inf", "%lf", &d) != 1 && > sscanf ("+Inf", "%lf", &d) != 1) > d = 0; >- setlocale (LC_ALL, old_locale); >+ setlocale (LC_ALL, old_locale); // Should a free(old_locale) >+ // call be made now? > go_pinf = d; > if (go_pinf > 0 && !go_finite (go_pinf)) > goto have_pinf; > > /* Try overflow. */ >@@ -84,17 +86,19 @@ > go_nan = go_pinf * 0.0; > if (isnan (go_nan)) > goto have_nan; > > /* Try sscanf with fixed strings. */ >- old_locale = setlocale (LC_ALL, "C"); >+ old_locale = strdup(setlocale (LC_ALL, NULL)); >+ setlocale (LC_ALL, "C"); > if (sscanf ("NaN", "%lf", &d) != 1 && > sscanf ("NAN", "%lf", &d) != 1 && > sscanf ("+NaN", "%lf", &d) != 1 && > sscanf ("+NAN", "%lf", &d) != 1) > d = 0; >- setlocale (LC_ALL, old_locale); >+ setlocale (LC_ALL, old_locale); // Should a free(old_locale) >+ // call be made now? > go_nan = d; > if (isnan (go_nan)) > goto have_nan; > > go_nan = go_pinf / go_pinf;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 97783
: 62524