Description
after applying following patch:
Index: modules/luni/src/main/native/luni/shared/OSFileSystem.c
=====================================================================
— modules/luni/src/main/native/luni/shared/OSFileSystem.c
+++ modules/luni/src/main/native/luni/shared/OSFileSystem.c
@@ -240,6 +240,9 @@ JNIEXPORT jlong JNICALL Java_org_apache_harmony_luni_platform_OSFileSystem_openI
ioh_convertToPlatform (pathCopy);
portFD = hyfile_open (pathCopy, flags, mode);
+ if (portFD < 0)
return (jlong)portFD;
}
and run the test in Harmony-6034, I got unrecognized characters, it should be Chinese characters
I fond that, in hyerrorhelpers.c::errorMessage, need to convert unicode got from Windows to utf-8 for java use.
When convert to multi-bytes ( > 0x80), the order of bytes is totally reversed.