FreeBSD Bugzilla – Attachment 136960 Details for
Bug 182307
x11-wm/icewm doesn't run on current
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
icewm.patch
icewm.patch (text/x-diff; charset=us-ascii), 839 bytes, created by
wolfgang
on 2013-10-27 00:45:17 UTC
(
hide
)
Description:
icewm.patch
Filename:
MIME Type:
Creator:
wolfgang
Created:
2013-10-27 00:45:17 UTC
Size:
839 bytes
patch
obsolete
>*** ylocale.cc.1.3.7_3 2013-10-27 01:11:07.000000000 +0200 >--- ylocale.cc 2013-10-27 01:18:09.000000000 +0200 >*************** >*** 126,133 **** > iconv_t YLocale::getConverter (const char *from, const char **&to) { > iconv_t cd = (iconv_t) -1; > > while (NULL != *to) >! if ((iconv_t) -1 != (cd = iconv_open(*to, from))) return cd; > else ++to; > > return (iconv_t) -1; >--- 126,137 ---- > iconv_t YLocale::getConverter (const char *from, const char **&to) { > iconv_t cd = (iconv_t) -1; > >+ char *myfrom = (char *)malloc(1 + strlen(from)); >+ strcpy(myfrom, from); >+ char *modptr = strstr(myfrom, "//"); >+ if (NULL != modptr) *modptr = '\0'; > while (NULL != *to) >! if ((iconv_t) -1 != (cd = iconv_open(*to, myfrom))) return cd; > else ++to; > > return (iconv_t) -1;
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 182307
: 136960