Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 534076 Details for
Bug 627452
dev-libs/libxlsxwriter - is a C library for creating Excel XLSX files
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch enables conversion from comma to decimal point
libxlsxwriter-0.7.7-double-function.patch (text/plain), 2.08 KB, created by
Petric Frank
on 2018-05-30 16:36:31 UTC
(
hide
)
Description:
patch enables conversion from comma to decimal point
Filename:
MIME Type:
Creator:
Petric Frank
Created:
2018-05-30 16:36:31 UTC
Size:
2.08 KB
patch
obsolete
>diff -urN libxlsxwriter-RELEASE_0.7.7/include/xlsxwriter/utility.h libxlsxwriter-0.7.7-patched/include/xlsxwriter/utility.h >--- libxlsxwriter-RELEASE_0.7.7/include/xlsxwriter/utility.h 2018-05-17 01:42:39.000000000 +0200 >+++ libxlsxwriter-0.7.7-patched/include/xlsxwriter/utility.h 2018-05-30 03:23:23.884362320 +0200 >@@ -156,12 +156,7 @@ > > /* Use a user defined function to format doubles in sprintf or else a simple > * macro (the default). */ >-#ifdef USE_DOUBLE_FUNCTION > int lxw_sprintf_dbl(char *data, double number); >-#else >-#define lxw_sprintf_dbl(data, number) \ >- lxw_snprintf(data, LXW_ATTR_32, "%.16g", number) >-#endif > > /* *INDENT-OFF* */ > #ifdef __cplusplus >diff -urN libxlsxwriter-RELEASE_0.7.7/src/utility.c libxlsxwriter-0.7.7-patched/src/utility.c >--- libxlsxwriter-RELEASE_0.7.7/src/utility.c 2018-05-17 01:42:39.000000000 +0200 >+++ libxlsxwriter-0.7.7-patched/src/utility.c 2018-05-30 03:21:41.551538640 +0200 >@@ -537,7 +537,6 @@ > * 123.45. End-users can replace this with something more rigorous if > * required. > */ >-#ifdef USE_DOUBLE_FUNCTION > int > lxw_sprintf_dbl(char *data, double number) > { >@@ -552,4 +551,3 @@ > > return 0; > } >-#endif >diff -urN libxlsxwriter-RELEASE_0.7.7/src/worksheet.c libxlsxwriter-0.7.7-patched/src/worksheet.c >--- libxlsxwriter-RELEASE_0.7.7/src/worksheet.c 2018-05-17 01:42:39.000000000 +0200 >+++ libxlsxwriter-0.7.7-patched/src/worksheet.c 2018-05-30 03:22:21.606861033 +0200 >@@ -2495,7 +2495,6 @@ > _write_number_cell(lxw_worksheet *self, char *range, > int32_t style_index, lxw_cell *cell) > { >-#ifdef USE_DOUBLE_FUNCTION > char data[LXW_ATTR_32]; > > lxw_sprintf_dbl(data, cell->u.number); >@@ -2506,16 +2505,6 @@ > range, style_index, data); > else > fprintf(self->file, "<c r=\"%s\"><v>%s</v></c>", range, data); >-#else >- if (style_index) >- fprintf(self->file, >- "<c r=\"%s\" s=\"%d\"><v>%.16g</v></c>", >- range, style_index, cell->u.number); >- else >- fprintf(self->file, >- "<c r=\"%s\"><v>%.16g</v></c>", range, cell->u.number); >- >-#endif > } > > /*
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 627452
:
488486
|
488488
|
488490
|
488492
|
488496
|
488776
|
498044
|
534074
|
534076
|
565926
|
565928
|
565930
|
587062
|
590372
|
590374
|
597530
|
603406
|
603408
|
648054
|
712974
|
712977
|
721259
|
724915
|
769505