diff src/solaris/native/java/lang/java_props_md.c @ 5852:95d1d08e82c1

8003228: (props) sun.jnu.encoding should be set to UTF-8 [macosx] Summary: Hard-code sun.jnu.encoding to UTF-8 on Mac Reviewed-by: naoto
author bchristi
date Mon, 07 Jan 2013 13:19:03 -0800
parents ba7fae92732e
children 47834fe119cb
line wrap: on
line diff
--- a/src/solaris/native/java/lang/java_props_md.c	Wed Jan 18 19:09:26 2012 +0400
+++ b/src/solaris/native/java/lang/java_props_md.c	Mon Jan 07 13:19:03 2013 -0800
@@ -498,7 +498,12 @@
     sprops.display_script = sprops.script;
     sprops.display_country = sprops.country;
     sprops.display_variant = sprops.variant;
+
+#ifdef MACOSX
+    sprops.sun_jnu_encoding = "UTF-8";
+#else
     sprops.sun_jnu_encoding = sprops.encoding;
+#endif
 
 #ifdef _ALLBSD_SOURCE
 #if BYTE_ORDER == _LITTLE_ENDIAN