FreeBSD Bugzilla – Attachment 86051 Details for
Bug 122420
[UPDATE] Update archivers/unrar-iconv
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 2.37 KB, created by
Yarodin
on 2008-04-03 16:20:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Yarodin
Created:
2008-04-03 16:20:01 UTC
Size:
2.37 KB
patch
obsolete
>--- unrar-iconv.orig/Makefile 2008-02-17 01:13:28.000000000 +0500 >+++ unrar-iconv/Makefile 2008-04-03 20:59:33.000000000 +0600 >@@ -18,5 +18,7 @@ > post-install: > @${ECHO_MSG} "===> Added iconv support, see new switches:" > @${ECHO_MSG} " la, ll and lo at \"unrar -?\"" >+ @${ECHO_MSG} "===> REMEMBER!!!: Windows rar archives using old DOS encodings as internal encoding." >+ @${ECHO_MSG} " CP866 for russian lang for exmaple." > > .include "${MASTERDIR}/Makefile" >--- unrar-iconv.orig/files/patch-iconv 2007-10-17 19:03:52.000000000 +0600 >+++ unrar-iconv/files/patch-iconv 2008-04-03 21:15:46.000000000 +0600 >@@ -152,10 +152,10 @@ > #ifdef S_IFLNK > #define SAVE_LINKS > #endif >---- strfn.cpp Tue Oct 4 11:57:54 2005 >-+++ strfn.cpp Mon Jan 16 18:04:41 2006 >+--- strfn.cpp.orig 2007-09-10 17:49:28.000000000 +0600 >++++ strfn.cpp 2008-04-03 21:15:08.000000000 +0600 > @@ -22,23 +22,49 @@ >- >+ > void ExtToInt(const char *Src,char *Dest) > { > +#ifdef WITH_ICONV >@@ -163,23 +163,23 @@ > + ret = (size_t)(-1); > + if (h_E2I != (iconv_t)(-1)) { > + static size_t inbytesleft, outbytesleft; >-+ >-+ inbytesleft = strlen(Src); >-+ outbytesleft = inbytesleft; >++ inbytesleft = strlen(Src)+1; >++ outbytesleft = NM; > + ret = iconv(h_E2I, &Src, &inbytesleft, &Dest, &outbytesleft); >++ Dest[outbytesleft-inbytesleft]=NULL; > + } >-+ if (ret == (size_t)(-1)) strcpy(Dest, Src); >-+#else /* !WITH_ICONV */ >++ if (ret == (size_t)(-1)) strcpy(Dest, Src); >++#else /* !WITH_ICONV */ > #if defined(_WIN_32) > CharToOem(Src,Dest); > #else > if (Dest!=Src) > strcpy(Dest,Src); > #endif >-+#endif /* !WITH_ICONV */ >++#endif /* !WITH_ICONV */ > } >- >- >+ >+ > void IntToExt(const char *Src,char *Dest) > { > +#ifdef WITH_ICONV >@@ -187,18 +187,18 @@ > + ret = (size_t)(-1); > + if (h_I2E != (iconv_t)(-1)) { > + static size_t inbytesleft, outbytesleft; >-+ >-+ inbytesleft = strlen(Src); >-+ outbytesleft = inbytesleft; >++ inbytesleft = strlen(Src)+1; >++ outbytesleft = NM; > + ret = iconv(h_I2E, &Src, &inbytesleft, &Dest, &outbytesleft); >++ Dest[outbytesleft-inbytesleft]=NULL; > + } >-+ if (ret == (size_t)(-1)) strcpy(Dest, Src); >-+#else /* !WITH_ICONV */ >++ if (ret == (size_t)(-1)) strcpy(Dest,Src); >++#else /* !WITH_ICONV */ > #if defined(_WIN_32) > OemToChar(Src,Dest); > #else > if (Dest!=Src) > strcpy(Dest,Src); > #endif >-+#endif /* !WITH_ICONV */ >++#endif /* !WITH_ICONV */ > }
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 122420
: 86051