Bug 366727 - Show the line/column which contains the invalid characters on load/save
Summary: Show the line/column which contains the invalid characters on load/save
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: encoding (show other bugs)
Version: 16.04
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 154897 343506 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-08-13 09:45 UTC by adr.fantini
Modified: 2019-05-19 15:03 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Test case (586.08 KB, text/plain)
2016-08-13 09:48 UTC, adr.fantini
Details

Note You need to log in before you can comment on or make changes to this bug.
Description adr.fantini 2016-08-13 09:45:35 UTC
When opening the attached powerinfo.txt file, kate reports:

The file /home/adriano/powerinfo_fix.txt 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.

However, the file has been tested according to the two top answers of this stack overflow question:
http://unix.stackexchange.com/questions/6516/filtering-invalid-utf8
(grep and iconv method)

And no non-UTF-8 items are found.

Reproducible: Always

Steps to Reproduce:
1. Open attached file
2. Check file with iconv or grep

Actual Results:  
File is reported to contain non-UTF-8 characters.

Expected Results:  
Warnings for non-UTF-8 chars should not appear.
Comment 1 adr.fantini 2016-08-13 09:48:15 UTC
Created attachment 100576 [details]
Test case
Comment 2 Christoph Feck 2016-08-14 11:00:23 UTC
It contains 0x00 (NUL) characters. If you can avoid creating those, Kate will read it.
Comment 3 adr.fantini 2016-08-15 08:34:57 UTC
(In reply to Christoph Feck from comment #2)
> It contains 0x00 (NUL) characters. If you can avoid creating those, Kate
> will read it.

Thanks. Maybe Kate could report (optionally... maybe with an additional button next to the "close info" button) the lines and characters which give problems?
Comment 4 Christoph Cullmann 2016-09-06 15:19:15 UTC
*** Bug 343506 has been marked as a duplicate of this bug. ***
Comment 5 Christoph Cullmann 2016-09-06 15:33:31 UTC
*** Bug 154897 has been marked as a duplicate of this bug. ***
Comment 6 Christoph Cullmann 2019-05-19 15:03:23 UTC
Dear user, this wish list item is now closed, as it wasn't touched in the last year and no contributor stepped up to implement it.

The Kate/KTextEditor team is small and we can just try to keep up with fixing bugs.

Therefore wishes that show no activity for a years or more will be closed from now on to keep at least a bit overview about 'current' wishs of the users.
If you want your feature to be implemented, please step up to provide some patch for it.

If you think it is really needed, you can reopen your request, but keep in mind,
if no new good arguments are made and no people get attracted to help out to implement it,
it will expire in a year again.

We have a nice website https://kate-editor.org that provides all the information needed to contribute, please make use of it.

Patches can be handed in via https://phabricator.kde.org/differential/

Greetings
Christoph Cullmann