Scratch shows .cpp and .h files as blank when they aren't

Bug #1090793 reported by Simon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Scratch
Fix Released
High
Mario Guerriero

Bug Description

When opening some .cpp and .h files in scratch, they appear empty even if they aren't.
I attached some files in the bug report that have this problem (INF2990-Jeu Air Hockey.zip).
What is weird however is that if I copy paste those files outside of the folder I attached, then scratch can open them without a problem.

ProblemType: Bug
DistroRelease: elementary OS 0.2
Package: scratch-text-editor 1.1.1+r963-0+pkg39~precise1 [origin: LP-PPA-elementary-os-daily]
ProcVersionSignature: Ubuntu 3.2.0-34.53-generic 3.2.33
Uname: Linux 3.2.0-34-generic x86_64
ApportVersion: 2.0.1-0ubuntu15+elementary3~precise1
Architecture: amd64
CrashDB: scratch_text_editor
Date: Sat Dec 15 15:11:22 2012
ExecutablePath: /usr/bin/scratch-text-editor
InstallationMedia: elementary OS 0.2 "Luna" - Beta 1 amd64 (20121114)
MarkForUpload: True
ProcEnviron:
 LANGUAGE=fr_CA:fr
 PATH=(custom, no user)
 LANG=fr_CA.UTF-8
 SHELL=/bin/bash
SourcePackage: scratch-text-editor
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Simon (nowis74) wrote :
Revision history for this message
Simon (nowis74) wrote :
description: updated
Revision history for this message
Mario Guerriero (mefrio-g) wrote :

the bug is hat scratch can't read non-UTF8 encoded files from archives.

Changed in scratch:
status: New → Confirmed
importance: Undecided → High
milestone: none → 1.2
Revision history for this message
Simon (nowis74) wrote :

Well, that's not exactly what I meant. I attached a zip file only because I wanted the folder "INF2990 -Jeu Air Hockey" to be included. Even if you extract the zip file, scratch still can't open the files correctly. However, I noticed that, for some reason, when
I copy the files outside the folder "INF2990 -Jeu Air Hockey", then scratch can open them. If I only attached the files to the bug
report, then you probably wouldn't have had the bug after downloading them since it only seem to happen when they are in the folder (at least on my computer).

Revision history for this message
Mario Guerriero (mefrio-g) wrote :

if you change the name of your folder avoiding to use spaces scratch will read them. This is the real problem :)

Changed in scratch:
assignee: nobody → Mario Guerriero (mefrio-g)
status: Confirmed → In Progress
Changed in scratch:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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