Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 91037 Details for
Bug 139409
smartmontools-5.36, problems with thousand separator with UTF-8 [PATCH]
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
smartmontools-utf8.patch
smartmontools-utf8.patch (text/plain), 1.25 KB, created by
Samuli Suominen (RETIRED)
on 2006-07-06 04:39:03 UTC
(
hide
)
Description:
smartmontools-utf8.patch
Filename:
MIME Type:
Creator:
Samuli Suominen (RETIRED)
Created:
2006-07-06 04:39:03 UTC
Size:
1.25 KB
patch
obsolete
>diff -ur smartmontools-5.36.orig/ataprint.c smartmontools-5.36/ataprint.c >--- smartmontools-5.36.orig/ataprint.c 2006-04-12 17:54:28.000000000 +0300 >+++ smartmontools-5.36/ataprint.c 2006-07-06 14:32:34.000000000 +0300 >@@ -445,7 +445,7 @@ > unsigned short lba_64 = drive->words088_255[103-88]; > uint64_t capacity_short=0, capacity=0, threedigits, power_of_ten; > int started=0,k=1000000000; >- char separator=','; >+ char *separator=","; > > // get correct character to use as thousands separator > #ifdef HAVE_LOCALE_H >@@ -453,7 +453,7 @@ > setlocale (LC_ALL, ""); > currentlocale=localeconv(); > if (*(currentlocale->thousands_sep)) >- separator=*(currentlocale->thousands_sep); >+ separator=currentlocale->thousands_sep; > #endif // #ifdef HAVE_LOCALE_H > > // if drive supports LBA addressing, determine 32-bit LBA capacity >@@ -485,7 +485,7 @@ > capacity -= threedigits*power_of_ten; > if (started) > // we have already printed some digits >- pstring += sprintf(pstring, "%c%03"PRIu64, separator, threedigits); >+ pstring += sprintf(pstring, "%s%03"PRIu64, separator, threedigits); > else if (threedigits || k==6) { > // these are the first digits that we are printing > pstring += sprintf(pstring, "%"PRIu64, threedigits);
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 139409
: 91037