https://bugs.kde.org/show_bug.cgi?id=406571

            Bug ID: 406571
           Summary: False "invalid charachter" while opening utf-8 files
                    (NULL charachter?)
           Product: kate
           Version: unspecified
          Platform: Ubuntu Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: part
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: daniel.klein...@gmail.com
  Target Milestone: ---

Created attachment 119422
  --> https://bugs.kde.org/attachment.cgi?id=119422&action=edit
Text file containing invalid charachters

This happens all the time. Enabling write-mode and saving the file does not
solve it. Other editors (eg Leafpad) have no issues. Hex editor showed no
special charachters. Neither did trying to grep for NULL etc.

These are important log files I work on all day long - so I have to disable the
"read only mode" every 5 minutes for 8 hours (!). 

It happens also with other kate-related editors/frontends, like KrViewer in
Krusader, so I will have to move the entire DE to gnome.. (need simple code
highlight and minimal DE- no big editors).

This is a log file created by other servers so I can't 'avoid using NULL'. 

Now adding "edit anyway" button won't help -- because after saving the message
will return: Kate won't 'clean' the invalid charachters, so it is a FALSE
WARNING. I wish it would corrupt the file, thus end the warnings ;) But it does
nothing. Just warning and disable editing. Repeatidly.

This behaviour is simply wrong. Control charachters are not 'invalid'.

STEPS TO REPRODUCE
1. Open the file.

OBSERVED RESULT
"The file _sched.log was opened with UTF-8 encoding but contained invalid
characters.
It is set to read-only mode, as saving might destroy its content.
Either reopen the file with the correct encoding chosen or enable the
read-write mode again in the tools menu to be able to edit it."


EXPECTED RESULT
Allow to edit normaly? 
Provide a button to remove or at least show the "invalid" charachters? 

KDE Frameworks 5.36.0
Qt 5.6.1 (built against 5.6.1)
Kate Part Version 5.36.0

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to