FreeBSD Bugzilla – Attachment 45277 Details for
Bug 69852
New port: chinese/unrar
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.shar
file.shar (text/plain), 2.33 KB, created by
statue
on 2004-07-31 19:10:25 UTC
(
hide
)
Description:
file.shar
Filename:
MIME Type:
Creator:
statue
Created:
2004-07-31 19:10:25 UTC
Size:
2.33 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># unrar/ ># unrar/Makefile ># unrar/files ># unrar/files/patch-arcread.cpp ># unrar/files/patch-unicode.cpp ># >echo c - unrar/ >mkdir -p unrar/ > /dev/null 2>&1 >echo x - unrar/Makefile >sed 's/^X//' >unrar/Makefile << 'END-of-unrar/Makefile' >X# New ports collection makefile for: zh-unrar >X# Date created: 1 Auguest 2004 >X# Whom: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw> >X# >X# $FreeBSD$ >X# >X >XCATEGORIES= chinese >X >XMAINTAINER= ports@FreeBSD.org >X >XMASTERDIR= ${.CURDIR}/../../archivers/unrar >X >XEXTRA_PATCHES= ${.CURDIR}/files/patch-arcread.cpp \ >X ${.CURDIR}/files/patch-unicode.cpp >X >X.include "${MASTERDIR}/Makefile" >END-of-unrar/Makefile >echo c - unrar/files >mkdir -p unrar/files > /dev/null 2>&1 >echo x - unrar/files/patch-arcread.cpp >sed 's/^X//' >unrar/files/patch-arcread.cpp << 'END-of-unrar/files/patch-arcread.cpp' >X--- arcread.cpp.orig Sun Aug 1 01:55:38 2004 >X+++ arcread.cpp Sun Aug 1 01:57:56 2004 >X@@ -540,6 +540,7 @@ >X >X void Archive::ConvertUnknownHeader() >X { >X+ int big5=0; >X if (NewLhd.UnpVer<20 && (NewLhd.FileAttr & 0x10)) >X NewLhd.Flags|=LHD_DIRECTORY; >X if (NewLhd.HostOS>=HOST_MAX) >X@@ -551,6 +552,16 @@ >X } >X for (char *s=NewLhd.FileName;*s!=0;s=charnext(s)) >X { >X+ if (big5==1) /* skip Big5 second byte */ >X+ { >X+ big5=0; >X+ continue; >X+ } >X+ if ((byte)*s>127) /* Big5 first byte */ >X+ { >X+ big5=1; >X+ continue; >X+ } >X if (*s=='/' || *s=='\\') >X *s=CPATHDIVIDER; >X #if defined(_APPLE) && !defined(UNICODE_SUPPORTED) >END-of-unrar/files/patch-arcread.cpp >echo x - unrar/files/patch-unicode.cpp >sed 's/^X//' >unrar/files/patch-unicode.cpp << 'END-of-unrar/files/patch-unicode.cpp' >X--- unicode.cpp.orig Sun Aug 1 01:54:23 2004 >X+++ unicode.cpp Sun Aug 1 01:54:56 2004 >X@@ -2,6 +2,7 @@ >X >X void WideToChar(const wchar *Src,char *Dest,int DestSize) >X { >X+#if 0 /* patch for chinese filename */ >X #ifdef _WIN_32 >X WideCharToMultiByte(CP_ACP,0,Src,-1,Dest,DestSize,NULL,NULL); >X #else >X@@ -18,6 +19,7 @@ >X if (Src[I]==0) >X break; >X } >X+#endif >X #endif >X #endif >X #endif >END-of-unrar/files/patch-unicode.cpp >exit
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 69852
: 45277