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 245810 - Exported options cannot be imported back on windows OS
Summary: Exported options cannot be imported back on windows OS
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Options&Settings (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-18 21:58 UTC by dandre
Modified: 2014-07-23 11:25 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
export selected options (32.83 KB, image/png)
2014-07-20 21:48 UTC, dandre
Details
same options imported (15.36 KB, image/png)
2014-07-20 21:49 UTC, dandre
Details
test export import files and log (46.17 KB, application/zip)
2014-07-21 20:55 UTC, dandre
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dandre 2014-07-18 21:58:14 UTC
When using a windows OS in french and a netbeans platform 7.4 based application in french, options exported using export button in options dialog cannot be imported back to the application.

the import categories chooser is empty.

I have seen that the file enabledItems.info in the exported zip is encoded as ISO 8859. 

In the platform source code the file is written using default locale encoding and when imported the encoding is forced to UTF8 so the localized categories can't be found.

Is there any workaround to recover pre 7.4 behaviour?

thanks
Comment 1 dandre 2014-07-20 21:48:15 UTC
Created attachment 148158 [details]
export selected options
Comment 2 dandre 2014-07-20 21:49:10 UTC
Created attachment 148159 [details]
same options imported
Comment 3 dandre 2014-07-20 21:49:54 UTC
this issue appears on netbeans ide too. I have attached this export and import chooser dialog boxes. On the import chooser, there is no options containing accentuated characters.
Comment 4 Theofanis Oikonomou 2014-07-21 10:23:55 UTC
Not sure if the encoding is the problem here. Please reopen attaching the test-export.zip file that I see in the already attached images as well as the log file. Thank you for reporting
Comment 5 dandre 2014-07-21 20:48:49 UTC
If in test-export.zip I replace enabledItems.info encoded ISO8859 by the same file encoded UTF8 everything seem fine.
I'll attach the requested files in a later post.

thanks
Comment 6 dandre 2014-07-21 20:55:19 UTC
Created attachment 148188 [details]
test export import files and log

This zip contains the following files:
* test-export.zip: original file created with this export button from option dialog
* test-export-utf8.zip: same file with enabledItems.info encoded utf8
* test-import-utf8.png: screenshot using this file
* messages.log
Comment 7 Theofanis Oikonomou 2014-07-22 09:37:35 UTC
(In reply to dandre from comment #6)
> Created attachment 148188 [details]

thanks I will investigate
Comment 8 Theofanis Oikonomou 2014-07-22 13:46:45 UTC
Changeset: 63806d1acfb3
Author:    Theofanis Oikonomou <theofanis@netbeans.org>
Date:      2014-07-22 15:45
Message:
Comment 9 Theofanis Oikonomou 2014-07-22 13:50:06 UTC
(In reply to dandre from comment #0)
> 
> In the platform source code the file is written using default locale
> encoding and when imported the encoding is forced to UTF8 so the localized
> categories can't be found.

I believe this is the root of the problem. With the fix enabledItems.ifo is written/read in UTF-8

> 
> Is there any workaround to recover pre 7.4 behaviour?
> 
> thanks

Please verify that it works for you as expected in latest builds. Thank you
Comment 10 dandre 2014-07-22 20:19:21 UTC
thanks for your fix but the latest build is not available in french and I don't think the bug will show an english release. Is ther any way to test your fix on community release version 7.4 in Frenche?

thanks
Comment 11 Quality Engineering 2014-07-23 02:07:46 UTC
Integrated into 'main-silver', will be available in build *201407230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/63806d1acfb3
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Task #245810 - Exported options cannot be imported back on windows OS
Comment 12 Theofanis Oikonomou 2014-07-23 11:25:45 UTC
(In reply to dandre from comment #10)
> thanks for your fix but the latest build is not available in french and I
> don't think the bug will show an english release. Is ther any way to test
> your fix on community release version 7.4 in Frenche?
> 
> thanks

AFAIK the fix cannot be applied in 7.4 french release unless you manually fetch sources for it, apply the fix and build it. Not sure if there is any other alternative. Marian any insight? Thank you