[kaffe] [patch] always create files in binary mode

Dalibor Topic robilad@yahoo.com
Tue Jun 10 06:36:01 2003


--0-1786361645-1055252356=:11000
Content-Type: text/plain; charset=us-ascii
Content-Id: 
Content-Disposition: inline

Hi,

the attached patch makes kaffe always create files in binary mode. All other
instances of KOPEN use O_BINARY, so I figured I'd add it here as well. It
should help on Win32 & Cygwin & other platforms that don't open files in binary
mode by default ;)

2003-06-10 Dalibor Topic <robilad@yahoo.com>

* libraries/clib/io/File.c:
(java_io_File_createNewFile0) Always create file in binary mode.

* kaffe/kaffevm/findInJar.c:
(getClasspathType) Always open files in binary mode.

cheers,
dalibor topic

__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
--0-1786361645-1055252356=:11000
Content-Type: application/octet-stream; name="file-binary.patch"
Content-Transfer-Encoding: base64
Content-Description: file-binary.patch
Content-Disposition: attachment; filename="file-binary.patch"

SW5kZXg6IGxpYnJhcmllcy9jbGliL2lvL0ZpbGUuYwo9PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09ClJDUyBmaWxlOiAvY3ZzL2thZmZlL2thZmZlL2xpYnJhcmll
cy9jbGliL2lvL0ZpbGUuYyx2CnJldHJpZXZpbmcgcmV2aXNpb24gMS4xOApk
aWZmIC11IC1yMS4xOCBGaWxlLmMKLS0tIGxpYnJhcmllcy9jbGliL2lvL0Zp
bGUuYwk3IE1hciAyMDAzIDA5OjI3OjQ5IC0wMDAwCTEuMTgKKysrIGxpYnJh
cmllcy9jbGliL2lvL0ZpbGUuYwkxMCBKdW4gMjAwMyAxMzoyNToxMCAtMDAw
MApAQCAtMzI3LDcgKzMyNyw3IEBACiAKIAlzdHJpbmdKYXZhMkNCdWYodW5o
YW5kKHRoaXMpLT5wYXRoLCBzdHIsIHNpemVvZihzdHIpKTsKIAotCXJjID0g
S09QRU4oc3RyLCBPX0VYQ0x8T19XUk9OTFl8T19DUkVBVCwgbW9kZSwgJmZk
KTsKKwlyYyA9IEtPUEVOKHN0ciwgT19FWENMfE9fV1JPTkxZfE9fQklOQVJZ
fE9fQ1JFQVQsIG1vZGUsICZmZCk7CiAJc3dpdGNoIChyYykgewogCWNhc2Ug
MDoKIAkJYnJlYWs7Cg==

--0-1786361645-1055252356=:11000
Content-Type: application/octet-stream; name="findInJar-binary.patch"
Content-Transfer-Encoding: base64
Content-Description: findInJar-binary.patch
Content-Disposition: attachment; filename="findInJar-binary.patch"

SW5kZXg6IGthZmZlL2thZmZldm0vZmluZEluSmFyLmMKPT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PQpSQ1MgZmlsZTogL2N2cy9rYWZmZS9rYWZmZS9rYWZmZS9r
YWZmZXZtL2ZpbmRJbkphci5jLHYKcmV0cmlldmluZyByZXZpc2lvbiAxLjUy
CmRpZmYgLXUgLXIxLjUyIGZpbmRJbkphci5jCi0tLSBrYWZmZS9rYWZmZXZt
L2ZpbmRJbkphci5jCTI0IE1heSAyMDAzIDIwOjA3OjA0IC0wMDAwCTEuNTIK
KysrIGthZmZlL2thZmZldm0vZmluZEluSmFyLmMJMTAgSnVuIDIwMDMgMTM6
MzQ6MjAgLTAwMDAKQEAgLTU1Nyw3ICs1NTcsNyBAQAogCQlyZXR1cm4gKENQ
X0RJUik7CiAJfQogCi0JcmMgPSBLT1BFTihwYXRoLCBPX1JET05MWSwgMCwg
JmgpOworCXJjID0gS09QRU4ocGF0aCwgT19SRE9OTFl8T19CSU5BUlksIDAs
ICZoKTsKIAlpZiAocmMpIHsKIAkJcmV0dXJuIChDUF9JTlZBTElEKTsKIAl9
Cg==

--0-1786361645-1055252356=:11000--