ETC
한글파일명 포함된 zip파일을 풀때 한글깨짐에 대해
EcusE
2003. 6. 8. 19:01
리눅스를 사용중인데 윈도우즈에서 압축한 한글파일명이
포함된 zip파일을 unzip등으로 풀면 한글이깨지는 경우가 있죠.
이경우
압축을 풀기전에 zip -F "파일이름.zip"을 먼저 실행후
unzip을 하면 한글파일명을 유지한채 압축을 해제할수있습니다.
패치내용 :
--- fileio.c.orig Thu Mar 9 13:29:08 2000
+++ fileio.c Thu Mar 9 13:49:44 2000
@@ -1803,8 +1803,8 @@
/* translate the Zip entry filename coded in host-dependent "extended
ASCII" into the compiler's (system's) internal text code page */
- Ext_ASCII_TO_Native(G.filename, G.pInfo->hostnum,
- G.crec.version_made_by[0]);
+ /*Ext_ASCII_TO_Native(G.filename, G.pInfo->hostnum,
+ G.crec.version_made_by[0]);*/
if (G.pInfo->lcflag) /* replace with lowercase filename */
TOLOWER(G.filename, G.filename);
unzip 한글패치 링크 : http://www.kr.freebsd.org/ml/archive/hangul-patch/2000/03/msg00007.shtml