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.
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
reassigning to cnd for evaluation
What is the value of "Encoding" property (call context menu on your project, Properties->General)? Does changing to another value helps?
> 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.
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?
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.
> 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.
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
consider for the next release due to lack of resources
*** This bug has been marked as a duplicate of bug 184310 ***