This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Output: Message from the localized OS should be shown in correct encoding | ||
---|---|---|---|
Product: | projects | Reporter: | Alexandr Scherbatiy <sunflower> |
Component: | Ant | Assignee: | Milos Kleint <mkleint> |
Status: | RESOLVED INCOMPLETE | ||
Severity: | normal | CC: | alexander.burdukov, jhavlin |
Priority: | P3 | Keywords: | I18N |
Version: | 7.0.1 | ||
Hardware: | PC | ||
OS: | Other | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Alexandr Scherbatiy
2011-08-31 13:45:04 UTC
Or create the test method is written not in English language. And print stack trace from this method. For example, run the following code: ---------------------------------------------------- public class JavaApplication1 { public static void тест(){ try { Process p = Runtime.getRuntime().exec("ttttttttt"); } catch (IOException ex) { ex.printStackTrace(); } } public static void main(String[] args) { // TODO code application logic here тест(); } } ---------------------------------------------------- The result is: java.io.IOException: Cannot run program "ttttttttt": CreateProcess error=2, ?? ??????? ????? ????????? ???? Output window does not encode bytes to characters. The encoding is handled by task runner that processes Ant output (assuming you have an Ant project). I think that the encoding specified in system property "file.encoding" should be used. So maybe your system is not configured correctly. Reassigning to Projects/Ant. Please evaluate. Thank you. please attach the IDE log file (http://wiki.netbeans.org/FaqLogMessagesFile). what encoding is your project? This is not NB issue. The problem can be reproduced even by running this simple app from command line. The problem is on JDK side. See method win32Error at jdk\src\windows\native\java\lang\ProcessImpl_md.c This method does not consider underlying system codepage when throwing IOException |