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.

Bug 98308 - I18N: Project can not be created with localized version in Windows
Summary: I18N: Project can not be created with localized version in Windows
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: I18N (show other bugs)
Version: 5.x
Hardware: Sun All
: P1 blocker (vote)
Assignee: Alexander Simon
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2007-03-20 11:44 UTC by Keiichi Oono
Modified: 2007-04-12 09:46 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
project file. Declaration is UTF-8, but file contains Shift_JIS character (1.66 KB, application/octet-stream)
2007-03-20 11:46 UTC, Keiichi Oono
Details
IDE log file when an exception was thrown (23.04 KB, text/plain)
2007-03-20 11:47 UTC, Keiichi Oono
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Keiichi Oono 2007-03-20 11:44:40 UTC
Build070319
JDK: 1.6.0
Platform: Windows Japanese

to reproduce:
  - select menu File > New Project
  - select C/C++ Development
  - select C/C++ Application in the Projects pane
  - Click Next
  - Accept all the defaults, and click finish

Exception is thrown, and project is not created successfully.

The created Application_1/nbproject/configurations.xml includes native encoded
characters, but the declaration in XML is:
  <?xml version="1.0" encoding="UTF-8"?>
It's an encoding mismatch.

Because we have various locales in users' environment, it's difficult to support
all the encoding values. So I would like to propose IDE always generate UTF-8
characters and the declaration is always "encoding="UTF-8", so then all users'
environment can be supported with UTF-8 encoding.

Please fix this issue by 5.5.1 release because it's serious for the localized
version.
Comment 1 Keiichi Oono 2007-03-20 11:46:01 UTC
Created attachment 39684 [details]
project file. Declaration is UTF-8, but file contains Shift_JIS character
Comment 2 Keiichi Oono 2007-03-20 11:47:25 UTC
Created attachment 39685 [details]
IDE log file when an exception was thrown
Comment 3 Alexander Simon 2007-04-11 12:57:15 UTC
fixed
- create writer with right encoding.

CVS log:

Checking in XMLDocWriter.java;
/shared/data/ccvs/repository/cnd/core/src/org/netbeans/modules/cnd/api/xml/XMLDocWriter.java,v
 <--  XMLDocWriter.java
new revision: 1.1.2.4; previous revision: 1.1.2.3
done
Checking in XMLEncoderStream.java;
/shared/data/ccvs/repository/cnd/core/src/org/netbeans/modules/cnd/api/xml/XMLEncoderStream.java,v
 <--  XMLEncoderStream.java
new revision: 1.1.2.2; previous revision: 1.1.2.1
done
Comment 4 Keiichi Oono 2007-04-12 09:46:14 UTC
Verified in 5.5.1 (Build070412).
Thank you very much for your fixing. I've confirmed, UTF-8 encoded XML is
created Windows platform. For others, it works fine as follows:
  Solaris (ja)         :  EUC-JP
  Solaris (ja_JP.UTF-8): UTF-8
  Solaris (ja_JP.PCK)  : UTF-8
  RHEL4                : UTF-8
  Windows              : UTF-8

Again, thank you.