--- old/src/share/native/java/lang/System.c 2013-03-28 12:26:55.000000000 -0700 +++ new/src/share/native/java/lang/System.c 2013-03-28 12:26:55.000000000 -0700 @@ -382,11 +382,19 @@ sprops->display_variant, sprops->format_variant, putID, getPropID); GETPROP(props, "file.encoding", jVMVal); if (jVMVal == NULL) { +#ifdef MACOSX + /* + * Since sun_jnu_encoding is now hard-coded to UTF-8 on Mac, we don't + * want to use it to overwrite file.encoding + */ + PUTPROP(props, "file.encoding", sprops->encoding); +#else if (fmtdefault) { PUTPROP(props, "file.encoding", sprops->encoding); } else { PUTPROP(props, "file.encoding", sprops->sun_jnu_encoding); } +#endif } else { (*env)->DeleteLocalRef(env, jVMVal); }