[ 
https://issues.apache.org/jira/browse/NETBEANS-6298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17470269#comment-17470269
 ] 

Thomas Schapitz commented on NETBEANS-6298:
-------------------------------------------

Could we then close this Bug as 'invalid'?

As this, in my opinion, turned out as just another - justifiable- quirk of the 
exec-maven-plugin usage, which could be addressed in the project properties, as 
well in the exec-plugins configuration in pom.xml?

I know, that it may be considered inconvenient, that one might need do do this 
in order to get the proper execution environment. But options to be set for the 
requirements for the process spawned by the exec plugin might indeed change, 
depending on whether you invoke your maven build directly, from an OS shell, 
via NB run command, or within a CI system like travis or jenkins. It might also 
be depending on the started executable itself, which might have hardcoded  the 
encoding for output on sysout and syserr.

None of the participants within the chain of delegation (Netbeans -> Maven  -> 
the exec-plugin) have a viable way of predicting these requirements. If 
Netbeans was to introduce mechanisms to twist the defaults there, matters would 
only get worse. The more, since in this case, there are also differences across 
the OSes to consider.

Note, that I'm having a similar discussion regarding the exec-plugin, its use 
of PATH, and the selected Java executable in NETBEANS-4595.

 

 

> Match NetBeans console encoding to system/app console encoding
> --------------------------------------------------------------
>
>                 Key: NETBEANS-6298
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-6298
>             Project: NetBeans
>          Issue Type: Bug
>          Components: cnd - Editor
>    Affects Versions: 12.0, 12.1, 12.2, 12.3, 12.4, 12.5, 12.6, NB13, 13
>         Environment: Windows 10、JDK1.8.201、Maven3.6.0、Netbeans12.6、Project 
> encoding UTF-8
>            Reporter: luke
>            Priority: Blocker
>         Attachments: Garbled.gif, Garbled.png, console-output-well.png, 
> full_output.png, screenshot-1.png, screenshot-2.png, screenshot-3.png
>
>
> My Windows OS language is Simplified Chinese and the default OS encoding is 
> GBK. When I open a properties file or a text file, the editor shows the file 
> contents as garbled, if I add the parameter -J-Dfile.encoding=UTF-8, the 
> editor opens the file in UTF-8 encoding format and the file is not garbled, 
> but the console output is garbled.
> !Garbled.gif|width=1055,height=536!
> !Garbled.png|width=1542,height=843!



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to