Public bug reported:

If you create this file:

    printf "A\xb3B" > a.txt

So that it contains a hex B3 character between the characters "A" and
"B", and then try to edit it:

    gted a.txt

The text editor window shows this misleading error message:

    Could Not Open File
    You do not have permission to open the file.

On the console, this message is logged:

    (gted:14315): editor-document-WARNING **: 09:39:24.369: Failed to
load file: There was a character encoding conversion error and it was
needed to use a fallback character.

What it should do instead is offer to use a different encoding than
UTF-8 (or at least show an error message that is not misleading).

** Affects: gnome-text-editor (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  If you create this file:
  
-     printf "A\xb3B" > a.txt
+     printf "A\xb3B" > a.txt
  
  So that it contains a hex B3 character between the characters "A" and
  "B", and then try to edit it:
  
-     gted a.txt
+     gted a.txt
  
  The text editor window shows this misleading error message:
  
-     Could Not Open File
-     You do not have permission to open the file.
+     Could Not Open File
+     You do not have permission to open the file.
  
  On the console, this message is logged:
  
-     (gted:14315): editor-document-WARNING **: 09:39:24.369: Failed to
+     (gted:14315): editor-document-WARNING **: 09:39:24.369: Failed to
  load file: There was a character encoding conversion error and it was
  needed to use a fallback character.
  
  What it should do instead is offer to use a different encoding than
- UTF-8.
+ UTF-8 (or at least show an error message that is not misleading).

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-text-editor in Ubuntu.
https://bugs.launchpad.net/bugs/2020174

Title:
  Incorrect error message when reading non-UTF8

Status in gnome-text-editor package in Ubuntu:
  New

Bug description:
  If you create this file:

      printf "A\xb3B" > a.txt

  So that it contains a hex B3 character between the characters "A" and
  "B", and then try to edit it:

      gted a.txt

  The text editor window shows this misleading error message:

      Could Not Open File
      You do not have permission to open the file.

  On the console, this message is logged:

      (gted:14315): editor-document-WARNING **: 09:39:24.369: Failed to
  load file: There was a character encoding conversion error and it was
  needed to use a fallback character.

  What it should do instead is offer to use a different encoding than
  UTF-8 (or at least show an error message that is not misleading).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-text-editor/+bug/2020174/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to