refuses to open files with incorrect encoding

Bug #575500 reported by Jan
38
This bug affects 17 people
Affects Status Importance Assigned to Milestone
gedit
Fix Released
Wishlist
gedit (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Binary package hint: gedit

gedit: 2.30.0git20100413-0ubuntu1
Ubuntu: 10.04 LTS

When I open a .doc document, I expect gedit to open it like Vim, Emacs and even Nano:
Just read out the bare text to produce a jumbled heap of »^@^@^@^@^@^@^@« and other symbols – but the main content still somehow human-readable if found.

Instead it gives me:
»Could not open the file /PATH/example.doc.
gedit has not been able to detect the character encoding.
Please check that you are not trying to open a binary file.
Select a character encoding from the menu and try again.«

(I forgot which ones the »several other formats« are specifically but I know this has happened to me countless times.)

Revision history for this message
Jan (jancborchardt-deactivatedaccount) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report. The issue is an upstream one and it would be nice if somebody having it could send the bug the to the people writting the software (https://wiki.ubuntu.com/Bugs/Upstream/GNOME)

Changed in gedit (Ubuntu):
importance: Undecided → Wishlist
summary: - gedit can not open .doc files and several other formats
+ refuses to open files with incorrect encoding
Changed in gedit:
importance: Undecided → Unknown
status: New → Unknown
Revision history for this message
Jan (jancborchardt-deactivatedaccount) wrote :

Thanks Sebastien. :)
I linked the upstream bug and reopened it.

Changed in gedit:
status: Unknown → Fix Released
Changed in gedit (Ubuntu):
status: New → Triaged
Revision history for this message
arkmundi (rkerver) wrote :

Got this error again today. The file I'm editing has 100% been created with gedit, so its surprising that I can edit, save, and then not be able to open the file.

Revision history for this message
arkmundi (rkerver) wrote :

My solution to the problem:
iconv -f 'UTF-8' -t 'ASCII//IGNORE' -o output-file-name --verbose input-file-name

The -t 'ASCII//IGNORE' option insures that the offensive characters will be discarded from the output, and the --verbose option tells you where they were in the file.

Revision history for this message
TGAKO (tgako) wrote :

Buddy the solution is so simple u just have to :
1-Right-Click on the application and chose Properties
2-Go to Permissions Tap and chuck "Allow executing file as program"
3-Close the window and run the program and chose run when promoted

And here you go you will be able to use it
I've Tested it with Crossover 9.1 on Ubuntu 10.04.1 and it worked with me hope it work with you.

Changed in gedit:
importance: Unknown → Low
Changed in gedit:
importance: Low → Unknown
status: Fix Released → Unknown
Changed in gedit:
importance: Unknown → Wishlist
status: Unknown → Confirmed
Changed in gedit:
status: Confirmed → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

The issue has been fixed upstream

Changed in gedit (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (7.6 KiB)

This bug was fixed in the package gedit - 3.18.1-1ubuntu1

---------------
gedit (3.18.1-1ubuntu1) xenial; urgency=medium

  * Newer upstream version and merge on Debian, includes those changes
    - code snippets plugin improvements (lp: #1335613)
    - implements a minimap widget (lp: #1302451)
    - don't close infobar after print preview is dismissed (lp: #929554)
    - some segfault fixes (lp: #928420)
    - save files even when backups can't be created (lp: #867923)
    - let you edit binary files (lp: #848253, #575500)
    - count underscores are part of a word (lp: #615506, #413360)
    - don't display warnings when saving after foccusing out (lp: #589906)
    - use correct printing margins (lp: #331077)
    - ctrl-T opens new tabs (lp: #301942)
    - hide print preview tooltips when moving the cursor (lp: #234711)
    - include word wrap option in the statusbar popover (lp: #118522)
  * debian/control.in:
    - don't Build-Depends on gnome-icon-theme-symbolic it's deprecated
    - gedit replaces gedit-common (<< 3.18.1-1ubuntu1)
    - updated the requirements
  * debian/patches/06_lp_401692.patch:
    - dropped, the change is included upstream now
  * debian/rules:
    - create compatiblity desktop file for upgraders
  * Remaining other changes
  * debian/rules:
    - Build without --Bsymbolic-functions to fix issues
  * debian/patches/0001-Use-the-OSX-menubar-layout-for-XFCE-Unity-etc.patch:
    - add traditional menubar (GNOME bug #741904)
  * debian/patches/02_add_keywords.patch:
    - Add new keywords for unity and gnome-shell
  * debian/patches/05_menu_label.patch:
    - Don't display in menu as "gedit Text Editor"
  * debian/patches/07_use_del_instead_ctrl_del.patch:
    - Use Delete, not Ctrl+Delete, to delete files in file browser
      side panel to match our Nautilus behavior (LP: #1163287)

  [ Lars Uebernickel ]
  * New upstream version (lp: #1339371)
  * debian/patches/01_gedit-bugreport-location.patch,
    debian/patches/02_add_keywords.patch,
    debian/patches/05_menu_label.patch:
    - update for new desktop file name
  * debian/patches/03_no_gnu_gettext.patch,
    debian/patches/06_lp_401692.patch,
    debian/patches/07_use_del_instead_ctrl_del.patch,
    debian/patches/08_multiarch_fallback.patch:
    - refresh
  * debian/patches/disable-warnings.patch:
    - dropped - should be fewer deprecation warnings now
  * debian/patches/00git_state_property_type.patch,
    debian/patches/fix_snippets_encoding.patch,
    debian/patches/fix_snippets_python34.patch,
    debian/patches/fix_snippet_warning.patch,
    debian/patches/git_encoding_combo.patch,
    debian/patches/git_filebrowser_toolbar.patch,
    debian/patches/git_get_start_sig.patch,
    debian/patches/git_save_run_tool_order.patch,
    debian/patches/git-search-hide-when-hitting-Esc.patch,
    debian/patches/git-search-use-new-GtkSearchEntry-signals.patch,
    debian/patches/git_select_mispelled_word.patch,
    debian/patches/git_Show-preview-text-in-the-font-chooser.patch,
    debian/patches/git_store_dialog.patch,
    debian/patches/git_wrap_labels.patch:
    - dropped - applied upstream
  * debian/patches/git_zeitgeist_crash.patch:
    - dropped - moved to ge...

Read more...

Changed in gedit (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.