comparison 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
comparison
equal deleted inserted replaced
14:25b95b2f8e4c 15:125c2fdc3f96
496 } 496 }
497 sprops.display_language = sprops.language; 497 sprops.display_language = sprops.language;
498 sprops.display_script = sprops.script; 498 sprops.display_script = sprops.script;
499 sprops.display_country = sprops.country; 499 sprops.display_country = sprops.country;
500 sprops.display_variant = sprops.variant; 500 sprops.display_variant = sprops.variant;
501
502 #ifdef MACOSX
503 sprops.sun_jnu_encoding = "UTF-8";
504 #else
501 sprops.sun_jnu_encoding = sprops.encoding; 505 sprops.sun_jnu_encoding = sprops.encoding;
506 #endif
502 507
503 #ifdef _ALLBSD_SOURCE 508 #ifdef _ALLBSD_SOURCE
504 #if BYTE_ORDER == _LITTLE_ENDIAN 509 #if BYTE_ORDER == _LITTLE_ENDIAN
505 sprops.unicode_encoding = "UnicodeLittle"; 510 sprops.unicode_encoding = "UnicodeLittle";
506 #else 511 #else