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 78971 - I18N - Using Mbyte in BPEL Project Name results in incorrect mbyte display in editor screens
Summary: I18N - Using Mbyte in BPEL Project Name results in incorrect mbyte display in...
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Project (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Sreenivasan Genipudi
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2006-06-23 13:04 UTC by sunlit
Modified: 2006-10-23 11:58 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
invalid mbyte (114.27 KB, image/gif)
2006-06-23 13:06 UTC, sunlit
Details
screenshot (25.03 KB, image/gif)
2006-09-12 12:47 UTC, sunlit
Details
screenshot (11.27 KB, image/gif)
2006-09-12 12:48 UTC, sunlit
Details
screenshot (13.62 KB, image/gif)
2006-09-12 12:48 UTC, sunlit
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sunlit 2006-06-23 13:04:58 UTC
build Coke milestone 14, WinXP, Solaris 10 sparc
Steps:
While creating new BPEL module project add mybte to project name (e.g. ja
characters in ja locale).
Proceed to open the .bpel file for editing - observe invalid mbyte in many
places: Navigator, Bpel visual designer, Properties windows... 
Editing the project name again via properties editor from within IDE corrects
the situation and in this case mbyte is displayed correctly throughout.
Gif is attached.
Comment 1 sunlit 2006-06-23 13:06:50 UTC
Created attachment 31334 [details]
invalid mbyte
Comment 2 Michael Frisino 2006-07-17 00:01:40 UTC
Some of this may not be a problem now that project wizards are being simplified.

Maybe some problem reamins however. Also, similar problem may be in BPEL file
wizard. That is why I am cc'ing praveen savur 
Comment 3 Sreenivasan Genipudi 2006-09-09 00:06:41 UTC
I am not able to reproduce this problem in the recent enterprise pack build. 
Adding "\" or "/" is prohibited to the project name.
Comment 4 sunlit 2006-09-12 12:45:40 UTC
build 0509, 
the issue is still visible - 
steps to reproduce:
open bundled travel reservation, choose new - BPEL process, and name it using
mbyte characters (ja charachers, ja locale in my case).
Open this file for editing - observe invalid mbyte dispayed in various places,
e.g., visual editor, properties editor, navigator. Please see gifs attached. 

Comment 5 sunlit 2006-09-12 12:47:57 UTC
Created attachment 33824 [details]
screenshot
Comment 6 sunlit 2006-09-12 12:48:15 UTC
Created attachment 33825 [details]
screenshot
Comment 7 sunlit 2006-09-12 12:48:32 UTC
Created attachment 33826 [details]
screenshot
Comment 8 Alexey Anjeleevich 2006-09-12 13:49:57 UTC
Cause: new bpel file is created using local character encoding (e.g. for Russia
it is Windows-1251). Then this file is read using UTF-8 character encoding. 
Here we loose local characters. 

It seems that problem is in class
org.netbeans.modules.bpel.core.wizard.NewBpelFileIterator, near line 244.

Probably, this bug can be fixed just by replacing stings

line 243> OutputStream outputStream = new FileOutputStream(file);
line 244> PrintWriter writer = new PrintWriter(outputStream);

with string 

> PrintWriter writer = new PrintWriter(file, "UTF-8");

After this change bpel wizard and bpel designer will read 
and write bpel file in same encoding (UTF-8).


Comment 9 Alexey Anjeleevich 2006-09-12 15:18:23 UTC
That was a correct assumption. Fixed.
Comment 10 sunlit 2006-10-23 11:58:07 UTC
verified in 1013