gedit can't open a txt file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gedit (Ubuntu) |
Low
|
Unassigned |
Bug Description
I have a txt file with a list of pages of different sites (related to my work). It is generated by Firefox plugin "Webmaster Sape".
When I try to open it with gedit I see an error message: "Unknown error: Invalid byte sequence in conversion input".
But for ex. Geany and LibreOffice Writer open it without any problems.
File is attached.
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: gedit 3.6.0-0ubuntu1
ProcVersionSign
Uname: Linux 3.5.0-17-generic x86_64
NonfreeKernelMo
ApportVersion: 2.6.1-0ubuntu3
Architecture: amd64
Date: Thu Oct 18 00:40:24 2012
ExecutablePath: /usr/bin/gedit
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Beta amd64 (20121006)
ProcEnviron:
LANGUAGE=ru_UA:ru
PATH=(custom, no user)
XDG_RUNTIME_
LANG=ru_UA.UTF-8
SHELL=/bin/bash
SourcePackage: gedit
UpgradeStatus: No upgrade log present (probably fresh install)
Simplehuman (simplehuman) wrote : | #1 |
Matt White (mfwhite5) wrote : | #3 |
Just upgraded to Quantal a week ago. Used gedit to edit a text file this morning and it worked fine. Restarted my computer and then tried to edit the same file again and got "Unexpected error: Invalid byte sequence in conversion input."
There shouldn't be any strange characters in the file.
Matt White (mfwhite5) wrote : | #4 |
Bizarre workaround for this bug: cat the file from the command line and then copy and paste it back into a new text file in gedit. I had to copy-paste-save it in sections, because if I pasted the entire document into gedit all at once, the invalid byte sequence error remained.
Matt White (mfwhite5) wrote : | #5 |
I am continuing to get this error on files that used to be able to be opened by gEdit. Here's an error message that is logged relating to this:
** (gedit:13182): WARNING **: Hit unhandled case 1 (Invalid byte sequence in conversion input) in parse_error.
Chriki™ (chrikitm) wrote : | #6 |
I’ve been facing a similar issue. For me the problem was that the encoding of the file had changed since it was last opened with Gedit (from WINDOWS-1252 to UTF-8). As I had manually set the encoding when first opening the file, Gedit had saved this information and tried to reuse it the next time I opened the file after the encoding change; this resulted in said error message.
To fix the problem, I had to remove the saved encoding information from the gvfs metadata like so:
gvfs-
I have posted more information on this at <http://
Simplehuman (simplehuman) wrote : | #8 |
It is still actual, any attention to this bug?
Changed in gedit (Ubuntu): | |
status: | Confirmed → Fix Released |
status: | Fix Released → Confirmed |
Dmitry Shachnev (mitya57) wrote : | #9 |
What you attached is not a .txt file, but rather a .tar.gz archive containing a .txt file. After unpacking it Gedit opens it fine:
zcat wmsape-
tar xf wmsape-list.txt.tar
gedit wmsape-list.txt
Sebastien Bacher (seb128) wrote : | #10 |
the txt is not a text, it's a compress archive rather, that's not a bug
Changed in gedit (Ubuntu): | |
importance: | Undecided → Low |
status: | Confirmed → Invalid |
Simplehuman (simplehuman) wrote : | #11 |
Yes, it is .tar.gz archive with a .txt file, wich is NOT opening with gEdit, but is opening normally wil another text redactors (Geany, Writer, etc.)
So the bug is not invalid
Changed in gedit (Ubuntu): | |
status: | Invalid → Confirmed |
Simplehuman (simplehuman) wrote : | #12 |
I'm attaching this txt file without compression...
Sebastien Bacher (seb128) wrote : | #13 |
sorry, I misunderstood the previous comment, that's a duplicate of bug #575500 then
Status changed to 'Confirmed' because the bug affects multiple users.