FreeBSD Bugzilla – Attachment 143407 Details for
Bug 167977
[smbfs] mount_smbfs results are differ when utf-8 or UTF-8 local encoding's name is used
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
kiconv_case.patch
kiconv_case.patch (text/plain), 1.10 KB, created by
John Baldwin
on 2014-06-05 13:52:46 UTC
(
hide
)
Description:
kiconv_case.patch
Filename:
MIME Type:
Creator:
John Baldwin
Created:
2014-06-05 13:52:46 UTC
Size:
1.10 KB
patch
obsolete
>Index: libkern/iconv.c >=================================================================== >--- libkern/iconv.c (revision 267049) >+++ libkern/iconv.c (working copy) >@@ -168,8 +168,8 @@ > struct iconv_cspair *csp; > > TAILQ_FOREACH(csp, &iconv_cslist, cp_link) { >- if (strcmp(csp->cp_to, to) == 0 && >- strcmp(csp->cp_from, from) == 0) { >+ if (strcasecmp(csp->cp_to, to) == 0 && >+ strcasecmp(csp->cp_from, from) == 0) { > if (cspp) > *cspp = csp; > return 0; >Index: libkern/iconv_ucs.c >=================================================================== >--- libkern/iconv_ucs.c (revision 267049) >+++ libkern/iconv_ucs.c (working copy) >@@ -102,9 +102,9 @@ > if (cspf) > dp->convtype |= KICONV_UCS_COMBINE; > for (i = 0; unicode_family[i].name; i++) { >- if (strcmp(from, unicode_family[i].name) == 0) >+ if (strcasecmp(from, unicode_family[i].name) == 0) > dp->convtype |= unicode_family[i].from_flag; >- if (strcmp(to, unicode_family[i].name) == 0) >+ if (strcasecmp(to, unicode_family[i].name) == 0) > dp->convtype |= unicode_family[i].to_flag; > } > if (strcmp(ENCODING_UNICODE, ENCODING_UTF16) == 0)
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 167977
: 143407