Here is the SAME file with only a few characters removed in one of the strings. And gedit opens it perfectly!
So definetely a bug in gedit when dealing with RawText binary files. ** Attachment added: "test-2.rc" https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/1010402/+attachment/3182662/+files/test-2.rc -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gedit in Ubuntu. https://bugs.launchpad.net/bugs/1010402 Title: Problem opening RawText file Status in “gedit” package in Ubuntu: Confirmed Bug description: lsb_release -rd Description: Ubuntu 12.04 LTS Release: 12.04 apt-cache policy gedit gedit: Installé : 3.4.1-0ubuntu1 Candidat : 3.4.1-0ubuntu1 Table de version : *** 3.4.1-0ubuntu1 0 500 http://ca.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages 100 /var/lib/dpkg/status What you expected to happen gedit to open file What happened instead gedit has problem opening attached RawText file test.rc generated by Windows 7; edit displays: "There was a problem opening the file /mnt/hgfs/vmware/test/test.rc. The file you opened has some invalid characters. If you continue editing this file you could corrupt this document. You can also choose another character encoding and try again." MOST IMPORTANT INFO: After opening file test.rc with Windows' Notepad and removing 'END' at line 387, then saving file, gedit can open file without any problem. After re-adding 'END' at line 387 (using gedit or Notepad) and saving file, gedit can no longer open file. ProblemType: Bug DistroRelease: Ubuntu 12.04 Package: gedit 3.4.1-0ubuntu1 ProcVersionSignature: Ubuntu 3.2.0-24.39-generic 3.2.16 Uname: Linux 3.2.0-24-generic x86_64 NonfreeKernelModules: nvidia ApportVersion: 2.0.1-0ubuntu8 Architecture: amd64 Date: Fri Jun 8 05:37:04 2012 InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425) ProcEnviron: LANGUAGE=fr_CA:fr TERM=xterm PATH=(custom, no user) LANG=fr_CA.UTF-8 SHELL=/bin/bash SourcePackage: gedit UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/1010402/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp