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 152975 - Bad unicode char in first (left) tab after open project
Summary: Bad unicode char in first (left) tab after open project
Status: RESOLVED DUPLICATE of bug 184310
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-11 17:53 UTC by xintrea
Modified: 2010-04-19 17:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xintrea 2008-11-11 17:53:16 UTC
Hi!

Today i install NetBeans (Ubuntu 7.10, JDK 1.6.0_10), and at once stumble at bug.

For view this bug, use steps:

- Run NetBeans
- Open any C/C++ project
- Open 2-3 tabs with source code
- Close NetBeans
- Again run NetBeans, NetBeans will open last project and last source code tabs
- If source write in Unicode (UTF-8), in first (left) source code tab we have bad unicode char. But in other tab, souce 
code show normal

This bug view in souce code with Cyrillic symbol (in cyrillic remarks, in cyrillic strings). For temporary solve i 
close this tab, find in project inspector this source file and open this file again. In this case, source open 
normally. But in next start, cyrillic text in first tab turn into unreadable symbols.

Screen shot of this bug 
http://i.piccy.kiev.ua/i2/22/95/8c177e6b2748a22b1f60158a9293.png
Comment 1 Petr Chytil 2008-11-12 09:13:22 UTC
reassigning to cnd for evaluation
Comment 2 Vladimir Voskresensky 2008-11-12 11:35:26 UTC
What is the value of "Encoding" property (call context menu on your project, Properties->General)? Does changing to
another value helps?
Comment 3 xintrea 2008-11-12 21:09:22 UTC
> What is the value of "Encoding" property (call context menu on your project, Properties->General)? Does changing to
another value helps?

This value set to UTF-8. Source code same write in UTF-8.

My locale codepage is KOI8-R. If set Properties->General->Encoding to KOI8-R, then ALL tab opened with bad cyrillic 
symbol. If again set Properties->General->Encoding to UTF-8, then bad cyrillic symbol (after restart) show in first 
tab, in other tab symbol is nomally.


UPD: Bad symbol show not in first (left) tab. Bad symbol show in first active (after reboot) tab.
Comment 4 Vladimir Voskresensky 2008-11-20 07:20:28 UTC
So, this is the problem in one tab after startup of IDE?
What if you close and reopen problematic file when IDE's startup is finished? Does it OK now? 
Comment 5 Vladimir Voskresensky 2008-11-20 08:18:54 UTC
some more questions. 
If opening file from Project view is OK => 
1) Could you, please, close project, close IDE, start IDE and open file from Favorites view. Any problems with encoding?
2) If no problems in 1 => please, leave file opened, close IDE, start IDE => any problems?

Thanks,
Vladimir. 
Comment 6 xintrea 2009-01-07 19:49:31 UTC
> So, this is the problem in one tab after startup of IDE?

Yes.


> What if you close and reopen problematic file when IDE's startup is finished? Does it OK now? 

After startup IDE i see first active tab with bad cyrillic symbol (i.e. lastes working source code tab). All оther tab 
contain true cyrillic symbol. I close problematic tab, and at once open this source file again in new tab. In new tab i 
see true cyrillic symbol.
Comment 7 Vladimir Voskresensky 2009-01-07 22:22:17 UTC
As workaround, please, set "Show on Startup" checkbox for Help->Start Page => the first loaded tab will be always Start
Page and your source files will be fine
Comment 8 Vladimir Voskresensky 2009-09-25 14:05:53 UTC
consider for the next release due to lack of resources
Comment 9 Vladimir Voskresensky 2010-04-19 17:01:23 UTC

*** This bug has been marked as a duplicate of bug 184310 ***