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 270568

Summary: org.openide.text.DataEditorSupport$1: The file /home/toddb/src/src5/mc_sdk_src-10.2/enc_avc/src/core/libavc/slice.cpp cannot be safely opened with encoding UTF-8. Do you want to continue opening it?
Product: platform Reporter: tbrunhoff <tbrunhoff>
Component: Data SystemsAssignee: Jaroslav Havlin <jhavlin>
Status: NEW ---    
Severity: normal CC: tbrunhoff
Priority: P3    
Version: Dev   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 229058
Attachments: stacktrace
stacktrace
stacktrace
stacktrace

Description tbrunhoff 2017-05-04 22:19:31 UTC
Build: NetBeans IDE Dev (Build 201705010001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b14
OS: Linux

User Comments:
tbrunhoff: a text file was opened because of an old breakpoint.




Stacktrace: 
org.openide.text.DataEditorSupport$1: The file /home/toddb/src/src5/mc_sdk_src-10.2/enc_avc/src/core/libavc/slice.cpp cannot be safely opened with encoding UTF-8. Do you want to continue opening it?
   at org.openide.text.DataEditorSupport.createAndThrowIncorrectCharsetUQE(DataEditorSupport.java:506)
   at org.openide.text.DataEditorSupport.loadFromStreamToKit(DataEditorSupport.java:496)
   at org.netbeans.modules.cnd.source.CppEditorSupport.loadFromStreamToKit(CppEditorSupport.java:221)
   at org.openide.text.DocumentOpenClose$DocumentLoad.atomicLockedRun(DocumentOpenClose.java:764)
   at org.openide.text.DocumentOpenClose$DocumentLoad.run(DocumentOpenClose.java:615)
   at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:321)
Comment 1 tbrunhoff 2017-05-04 22:19:34 UTC
Created attachment 164255 [details]
stacktrace
Comment 2 tbrunhoff 2017-05-12 18:10:18 UTC
Created attachment 164308 [details]
stacktrace

Accorder to unix 'file' command, the file cited is: C source, Non-ISO extended-ASCII text

It seems the ide is misinformed.
Comment 3 tbrunhoff 2017-06-13 19:16:17 UTC
Created attachment 164531 [details]
stacktrace

Opening a file... usually I can still open it with this warning.  Now it cannot be opened.
Comment 4 Exceptions Reporter 2017-12-16 15:51:12 UTC
Created attachment 165575 [details]
stacktrace

UTF - 8 unicode