https://javacc.dev.java.net/issues/show_bug.cgi?id=201 Issue #|201
Summary|Add option to configure file encoding of grammars and
|parsers
Component|javacc
Version|4.0
Platform|All
OS/Version|All
URL|
Status|NEW
Status whiteboard|
Keywords|
Resolution|
Issue type|ENHANCEMENT
Priority|P3
Subcomponent|general
Assigned to|sreeni
Reported by|bentmann
------- Additional comments from
bentmann@... Sat May 31 22:08:11 +0000 2008 -------
Hi,
I am contributing to Maven where we recently started efforts to unify the
handling of file encoding for all plugins that read source files [0]. As a
prerequisite, a plugin needs to expose a parameter for the user to configure the
employed file encoding. Considering the needs of projects with developers spread
all over the world like open-source software, it is apparent that relying on the
user's platform encoding does not deliver reliable results. Also, requiring
users to set the system property "file.encoding" on JVM startup is not feasible
(e.g. in embedded scenarios like IDEs).
The JavaCC Maven Plugin [1] can currently not provide such an option because the
underlying JavaCC API does support setting the encoding. Hence this issue is a
request for a new option in JavaCC to configure the file encoding of a grammar
file and the generated parser file. A similar question had arised some time ago
on the user mail list [2].
More precisely, some new parameter
-ENCODING <charset>
would be appreciated that JavaCC, JJTree and JJDoc would use to create an
InputStreamReader/OutputStreamWriter rather than a FileReader/FileWriter.
Kind regards,
Benjamin Bentmann
[0]
http://docs.codehaus.org/display/MAVENUSER/POM+Element+for+Source+File+Encoding[1]
http://mojo.codehaus.org/javacc-maven-plugin/[2]
https://javacc.dev.java.net/servlets/ReadMsg?listName=users&msgNo=976---------------------------------------------------------------------
To unsubscribe, e-mail:
issues-unsubscribe@...
For additional commands, e-mail:
issues-help@...