Scratch fails to open some text files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Scratch |
Fix Released
|
High
|
Mario Guerriero |
Bug Description
Scratch fails to open some files, probably due to encoding issues. I've attached a sample file that triggers the bug. The file is encoded with Windows-1252 but the Python character detection reports it as ISO-8859-2. Gedit displays the file with some unrecognized symbols, while Scratch simply displays a blank page.
ProblemType: Bug
DistroRelease: elementary OS 0.2
Package: scratch-text-editor 1.1.1+r1014-
ProcVersionSign
Uname: Linux 3.5.0-27-generic x86_64
ApportVersion: 2.0.1-0ubuntu17
Architecture: amd64
CrashDB: scratch_text_editor
Date: Wed Apr 10 15:26:52 2013
ExecutablePath: /usr/bin/
GsettingsChanges:
InstallationMedia: elementary OS 0.2 "Luna" - Build amd64 LIVE Binary 20121001-15:16
MarkForUpload: True
ProcEnviron:
PATH=(custom, no user)
LANG=ru_RU.UTF-8
SHELL=/bin/bash
SourcePackage: scratch-text-editor
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in scratch: | |
status: | New → Confirmed |
importance: | Undecided → High |
milestone: | none → 1.2 |
assignee: | nobody → Mario Guerriero (mefrio-g) |
status: | Confirmed → Fix Released |
Changed in scratch: | |
status: | Fix Committed → In Progress |
FYI, if you think http:// bazaar. launchpad. net/~elementary -apps/scratch/ scratch/ revision/ 1017 is a fix, I have to disappoint you: it breaks encoding detection on filenames with spaces.
NEVER EVER feed aribitrary values to spawn_command_ line_* methods!