에러 메시지

Error checking in 'filename'.
Type manager "text_file_delta" failed create_version operation.
Unable to check in "filename".


이 메시지는 text 파일에 binary 문자(00)가 포함되어 있는 경우 발생합니다.

이 것처럼...
00 00 00 이 들어가 있죠..




ccperl.exe 로 null이 존재하는지 간단하게 확인 할 수 있습니다.
ccperl -e "print(@null=grep(/\000/,<>)?'Contains nulls':'No nulls found')" "foo.c"


그리고 다음과 같이 null문자를 제거할 수 있습니다.
$ perl -pi -e 's/\x00//g' file_name

혹은

$ awk '{gsub("\000","");print}' file_name > file_name



참조 : https://www-304.ibm.com/support/docview.wss?uid=swg21222072


+ Recent posts