Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

I18N: xjc generates localized strings of AM/PM so compilation fails #783

@glassfishrobot

Description

@glassfishrobot

It looks xjc generates localized strings of AM or PM into "Generated on:" field.
It generates in platform language.

In the following case, "PM" is localized to "�後" when it runs in Japanese locale.

< // Generated on: 2010.07.29 at 12:17:09 PM JST

// Generated on: 2010.07.29 at 12:16:27 �後 JST

It will cause compilation error when we use different encoding e.g. NetBeans
project is using UTF-8 but it runs on Windows (Shift-JIS).
Actually it happens on NetBeans 6.9.

Please do not use localized strings in generated files so that the sources
can be compiled in any encoding. I'm seeing many related issues that
xjc accepts encoding option. It's one of the option but AM/PM field
is not necessary to localize so let's revert back to English quickly.

Environment

Operating System: All
Platform: All

Affected Versions

[2.2.1]

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions