Passes invalid paths to chardetect.py and has no fallback if it fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Scratch |
Fix Released
|
High
|
Sergey "Shnatsel" Davidoff |
Bug Description
Scratch passes invalid paths to chardetect.py, which causes character detection to fail, e.g. on path "/home/
Scratch has no fallback for such case, and displays blank file when character encoding detection fails (i.e. fails silently) and makes the user believe that the file is blank, which is not true (and this is probably a separate bug).
ProblemType: Bug
DistroRelease: elementary OS 0.2
Package: scratch-text-editor 1.1.1+r975-
ProcVersionSign
Uname: Linux 3.5.0-19-generic x86_64
ApportVersion: 2.0.1-0ubuntu15
Architecture: amd64
CrashDB: scratch_text_editor
Date: Sat Jan 19 00:32:43 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)
Related branches
- elementary Apps team: Pending requested
-
Diff: 36 lines (+16/-8)1 file modifiedsrc/Services/Encoding.vala (+16/-8)
Changed in scratch: | |
status: | New → In Progress |
assignee: | nobody → Sergey "Shnatsel" Davidoff (shnatsel) |
summary: |
- Passes invalid paths to python-chardetect and has no fallback + Passes invalid paths to chardetect.py and has no fallback if it fails |
description: | updated |
Changed in scratch: | |
status: | In Progress → Fix Committed |
Changed in scratch: | |
status: | Fix Committed → Fix Released |
Setting importance to hight because right now Scratch cannot display any files which have a space in the file name.