Bug 1514 : Non UTF8 caracters cause preprocess error
Last modified: 2010-03-21 16:35




Status:
RESOLVED
Resolution:
INVALID -
Priority:
P2
Severity:
normal

 

Reporter:
yelele.eu
Assigned To:
MrFeinberg

Attachment Type Created Size Actions

Description:   Opened: 2010-03-15 17:12
Version 1.1 - windows Vista - java 1.6.0_17

this piece of code produce this error :
processing.app.debug.RunnerException: unexpected token: /
at processing.app.Sketch.preprocess(Unknown Source)
at processing.app.Sketch.preprocess(Unknown Source)
at processing.app.Sketch.build(Unknown Source)
at processing.app.Sketch.build(Unknown Source)
at processing.app.Editor$DefaultRunHandler.run(Unknown Source)
at java.lang.Thread.run(Thread.java:619)


CODE :
//----- èééèèéééàééèé''ééé
//----------------------------------------------------------------
//--- IMPORTS
//----------------------------------------------------------------
import ddf.minim.*;


=> working on version 1.0.9 (produce blank screen)

Note : it's an example, i'm not writing this kind of comments
Additional Comment #1 From yelele.eu 2010-03-15 17:15
One caracter left and another type of error :

CODE : (one "é" left on the line)
//----- èééèèéééàééèé''éé
//----------------------------------------------------------------
//--- IMPORTS
//----------------------------------------------------------------
import ddf.minim.*;


ERROR :
File C:\Users\Francois\AppData\Local\Temp\build20072.tmp\.java is missing


=> Test.java is in the directory
Additional Comment #2 From MrFeinberg 2010-03-17 10:36
Can't reproduce. Please mark fixed.
Additional Comment #3 From yelele.eu 2010-03-18 12:13
Reproduced today with the same code after installing the last JVM and downloading
Processing 1.1 another time...

Vista french : is the problem ?

(is french deprecated <|:-|)
Additional Comment #4 From yelele.eu 2010-03-18 12:23
//----- eeeeeeeeaeee''ééeee
//----------------------------------------------------------------
//--- IMPORTS
//----------------------------------------------------------------
import ddf.minim.*;

=> This code works on processing 1.1

But this one still not working :
//----- èééèèéééàééèé''ééé
//----------------------------------------------------------------
//--- IMPORTS
//----------------------------------------------------------------
import ddf.minim.*;


What this sh... ?


The result is non usable non-UTF8 character because sometime it can cause this
issue...
Additional Comment #5 From MrFeinberg 2010-03-18 16:51
Can't reproduce. Please attach the suspect pde file.
Additional Comment #6 From yelele.eu 2010-03-21 04:32
To reproduce I just copy and paste this (1.09 working) code in processing 1.1 :
[START OF CODE]
//----- èééèèéééàééèé''ééé
//----------------------------------------------------------------
//--- IMPORTS
//----------------------------------------------------------------
import ddf.minim.*;
[END OF CODE]
=> this one produce issue discribe before


[START OF CODE]
//----- eeeeeeeeaeee''ééeee
//----------------------------------------------------------------
//--- IMPORTS
//----------------------------------------------------------------
import ddf.minim.*;
[END OF CODE]
=> this one work


I've seen this issue in a heavy pde and i delete lines to make the code as smaller as
a i can to still reproduce this issue.
It seem that a certain non utf8 caracters suite produce this issue but with one
caracter left, it's work.


=> i replace all non UTF8 caracters ('é', 'à', 'è' and 'ç' in fact) in the (mulitple) pde
source code and the whole code works again.
Additional Comment #7 From MrFeinberg 2010-03-21 16:35
I have a specific technical reason for asking you to *attach* the .pde file
in question, rather than to paste its source into this form.