--- old/src/java.base/share/native/libjava/System.c 2018-03-22 11:14:42.721816668 -0400 +++ new/src/java.base/share/native/libjava/System.c 2018-03-22 11:14:42.357634667 -0400 @@ -244,21 +244,8 @@ PUTPROP(props, "line.separator", sprops->line_separator); /* - * user.language - * user.script, user.country, user.variant (if user's environment specifies them) - * file.encoding + * file encoding for stdout and stderr */ - PUTPROP(props, "user.language", sprops->language); - if (sprops->script) { - PUTPROP(props, "user.script", sprops->script); - } - if (sprops->country) { - PUTPROP(props, "user.country", sprops->country); - } - if (sprops->variant) { - PUTPROP(props, "user.variant", sprops->variant); - } - PUTPROP(props, "file.encoding", sprops->encoding); if (sprops->sun_stdout_encoding != NULL) { PUTPROP(props, "sun.stdout.encoding", sprops->sun_stdout_encoding); } @@ -314,7 +301,7 @@ #endif /* !!! DO NOT call PUTPROP_ForPlatformNString before this line !!! - * !!! I18n properties have not been set up yet !!! + * !!! The platform native encoding for strings has not been set up yet !!! */ InitializeEncoding(env, sprops->sun_jnu_encoding); @@ -379,17 +366,6 @@ PUTPROP(props, "sun.desktop", sprops->desktop); } - /* - * unset "user.language", "user.script", "user.country", and "user.variant" - * in order to tell whether the command line option "-DXXXX=YYYY" is - * specified or not. They will be reset in fillI18nProps() below. - */ - REMOVEPROP(props, "user.language"); - REMOVEPROP(props, "user.script"); - REMOVEPROP(props, "user.country"); - REMOVEPROP(props, "user.variant"); - REMOVEPROP(props, "file.encoding"); - ret = JVM_InitProperties(env, props); /* reconstruct i18n related properties */