Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 303809 Details for
Bug 308477
sys-libs/uclibc-0.9.32: version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
gen_wc8bit.patch
gen_wc8bit.patch (text/plain), 1.16 KB, created by
Ed Wildgoose
on 2012-03-01 10:08:16 UTC
(
hide
)
Description:
gen_wc8bit.patch
Filename:
MIME Type:
Creator:
Ed Wildgoose
Created:
2012-03-01 10:08:16 UTC
Size:
1.16 KB
patch
obsolete
>--- a/extra/locale/gen_wc8bit.c >+++ b/extra/locale/gen_wc8bit.c >@@ -99,31 +99,29 @@ > int total_size = 0; > > if (!setlocale(LC_CTYPE, "en_US.UTF-8")) { >- /* Silly foreigners disabling en_US locales */ >- FILE *fp = popen("locale -a", "r"); >- if (!fp) >- goto locale_failure; >- >- while (!feof(fp)) { >+ /* setlocale might be just a stub */ >+ fp = popen("locale -a", "r"); >+ if (!fp) { >+ printf("#error could not execute 'locale -a'\n"); >+ return EXIT_FAILURE; >+ } >+ >+ /* while (!feof(fp)) { > char buf[256]; > size_t len; > >- if (fgets(buf, sizeof(buf) - 10, fp) == NULL) >- goto locale_failure; >+ if (fgets(buf, sizeof(buf) - 10, fp) == NULL) { >+ printf("#error could not read 'locale -a' output buffer\n"); >+ return EXIT_FAILURE; >+ } > > len = strlen(buf); > if (len > 0 && buf[len - 1] == '\n') > buf[--len] = '\0'; > if (len < 5 || strcasecmp(&buf[len-5], ".UTF8") != 0) > strcat(buf, ".UTF8"); >- if (setlocale(LC_CTYPE, buf)) >- goto locale_success; > } >- >- locale_failure: >- printf("could not find a UTF8 locale ... please enable en_US.UTF-8\n"); >- return EXIT_FAILURE; >- locale_success: >+ */ > pclose(fp); > } >
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 Raw
Actions:
View
Attachments on
bug 308477
:
227695
|
265701
|
265707
|
265709
|
265713
|
282681
|
282683
|
299519
|
299521
|
303805
|
303807
| 303809 |
303811
|
303813
|
309039