PDA

View Full Version : ThinBasic(ThinAir) dislikes accented letters



dco045
12-02-2023, 01:08
Hi TB world.

I encounter a curious behavior.
I copied an old, tested, validated script in a directory, tryed to execute it .... Nothing occurs. ???
I restested the script in the original environnement : ALL OK

So, I tested the very simple script in the new environnement : Nothing occurs. ????


'---Load Console Module
Uses "Console"

'---Print the magic words
PrintL "Hello World from ThinBASIC!"
PrintL
PrintL "Press a key to end program before 5 sec"

'---Wait for a key press
WaitKey(5)

If it is saved in a directory, for example W:\temp\test_dir it executes without problem.
It is also possible to bundle it.


The same script saved in a directory with an accented letter in the name
W:\temp\dir_accentué does not execute. No console window, no error window
It is also not possible to bundle it.

10289

The script bundled in the directory without accent, copied to the directory with accent
executes correctly.


Environnement :
Windows 7 pro SP1 french version
ThinBasic 1.11.6.0

LAST TEST ::
It works in an accented dir on a pc running ThinAir 1.10.7.0
It works in an accented dir on a pc running ThinAir 1.11.1.0


Thank for help, I have plenty accented dirs :cry:

Dany

======================================== EDIT ==================

Last test :

On another PC (always W7 SP1) I downloaded TB 1.11.7.0 .. :)

Still not running in accented dir, but .....
A Windows popup error message appears :

10290
More text :


Nom d’événement de problème: APPCRASH
Nom de l’application: thinBasic.exe
Version de l’application: 1.11.6.0
Horodatage de l’application: 00003039
Nom du module par défaut: THINCORE.DLL
Version du module par défaut: 1.11.6.0
Horodateur du module par défaut: 00003039
Code de l’exception: c0000005
Décalage de l’exception: 000c19d2
Version du système: 6.1.7601.2.1.0.256.48
Identificateur de paramètres régionaux: 1036
Information supplémentaire n°*1: 0a9e
Information supplémentaire n°*2: 0a9e372d3b4ad19135b953a78882e789
Information supplémentaire n°*3: 0a9e
Information supplémentaire n°*4: 0a9e372d3b4ad19135b953a78882e789

If these info can help ?


Dany

ErosOlmi
13-02-2023, 17:37
Thanks for reporting.

The fact it is happening in so many places must be related to a single failure point.
Will have a look soon.

ErosOlmi
13-02-2023, 18:22
I've tried ...

with a directory with accent letter dir_accentué ... my Antivirus TrendMicro delete thinAir as a virus telling it is trying to crypt something
with the same directory without any accented letter dir_accentu all is ok

mmmmmmmh

dco045
13-02-2023, 18:34
I've tried ...

with a directory with accent letter dir_accentué ... my Antivirus TrendMicro delete thinAir as a virus telling it is trying to crypt something
with the same directory without any accented letter dir_accentu all is ok

mmmmmmmh

Hi Eros.

I can't test now.

I'll try this evening,after sopping antivirus ( Microsoft Security Essentials )
and keep you informed.

Regards,

Dany

Yann_F_29
14-02-2023, 01:16
Hello Eros, hello Dany

I just whish to add a small stone to this discussion.

In 2020, a friend of me had to work from home, Covid obliges.
She had to send documents (one .docx and two .xlsx), as well as a report email.
The sending had to be done by FTP. She's not a computer professional at all, she has a good practice of office, but FTP is Greek to her.:confused:
So I wrote her a little script to make these xfers. ThinBasic not being installed on her PC (from his company), so I sent her the bundled version, with the source code.
Everything went well, working properly.

A few months ago while I was abroad, without any computer mean at my disposal, I had to change the email address where to send the report. Over the phone, I told her to download ThinBasic and install it on his PC. It was version 1.11.6.0
I explained to her how to open the source code of the script with ThinAir and how to modify the email address.
When I told her to click on the green arrow (RUN), she told me that an error window appeared. Without being able to help her further, she had to do her transfers manually by email with the intervention of the recipient company.

Being too far away, I couldn't help her more. On my return I modified the source code of the script, I bundled it, sent it to her and everything was back to normal.

Reading DCO045's post, I remembered this problem.

My friend's home directory is C:\Users\Françoise . It is not an accent, it is a cedilla ... :mad:

After reading DCO045 post I tested in a comparable environnement, and the crash appears :grrrr:

The problem persists even with antivirus desactivated.

I tested in %HOMEPATH%\Téléchargements .... the programs works OK because the true name is %HOMEPATH%\Downloads



Best regards



Yann

dco045
14-02-2023, 01:52
Hi Eros, hi Yann

I was just testing when I read Yann's post.

I also tested with and without antivirus active : same comportement. :cry:

I attached a file generated when error occurs.
The extension is .wer but it is a text file.

If it can help ?



Best regards


Dany

ErosOlmi
14-02-2023, 13:09
Ciao Dany, Yann

thanks a lot for your help.

Yesterday evening I started to have a look at the problem but still didn't find what is exactly causing this mess.
I think it is related to some ANSI/OEM/UTF8 conversion in some places of Core engine and thinAir

I will have more time during next week-end but keep trying daily anyway.

Ciao
Eros

dco045
14-06-2023, 00:48
Hi Eros,


I encounter a new accent problem. :evil:

the ASC(StringExpression [, position]) exhibits a curious comportement.



Just try the script given as example in ASC help file, inserting an accented char to hello string, even in last position.

And see the collection of zeroes.

Maybe the position var is fooled by 16 bits chars ? :confused:



Best regards.

Dany

ErosOlmi
16-06-2023, 08:04
I think I've found the problem.
Will release a new update soon

Thanks for reporting

dco045
16-06-2023, 17:50
I think I've found the problem.
Will release a new update soon

Thanks for reporting

Hi Eros,

Does the problem has the same cause as the first post of this thread ? :confused:


Best thinks :drink:


Dany

ErosOlmi
17-06-2023, 10:31
No, in this case it was just an error in ASC function and conversion from ascii/utf-8/unicode

dco045
17-06-2023, 23:59
No, in this case it was just an error in ASC function and conversion from ascii/utf-8/unicode

Hi Eros,


Bad luck, two issues solved in one shot, would be fine :D



Dany

dco045
29-01-2024, 20:25
I think I've found the problem.
Will release a new update soon

Thanks for reporting

Hi Eros.

I'm testing ThinBasic 1.12 :p:p thanks......

Now ThinAir likes accented dirs.
But, bundling still fails.
10318
Bundling the same script in another directory is OK.

In the page : https://www.thinbasic.com/downloads.html
you state : Compatibility: Windows 10 or higher

Is it true ?
For multiple causes I am glued to Win 7.:evil:
Am I obliged to stay with ThinBasic 1.11 ?

Does the bundling issue is caused by W7 ?

Dany

dco045
29-01-2024, 20:35
Hi Eros,


I encounter a new accent problem. :evil:

the ASC(StringExpression [, position]) exhibits a curious comportement.



Just try the script given as example in ASC help file, inserting an accented char to hello string, even in last position.

And see the collection of zeroes.

Maybe the position var is fooled by 16 bits chars ? :confused:



Best regards.

Dany



ErosOlmi

No, in this case it was just an error in ASC function and conversion from ascii/utf-8/unicode



ASC don't give the same collection of zeroes.
But many pop up appears. I suppose that they are from the tests you made ??


Dim MyString As String VALUE = "HELLO è "

10319

10320

Dany

ErosOlmi
29-01-2024, 21:00
Thanks a lot for the info your reported.
Will check soon and fix.

ErosOlmi
29-01-2024, 21:29
Hi Eros.

I'm testing ThinBasic 1.12 :p:p thanks......

Now ThinAir likes accented dirs.
But, bundling still fails.
10318
Bundling the same script in another directory is OK.

In the page : https://www.thinbasic.com/downloads.html
you state : Compatibility: Windows 10 or higher

Is it true ?
For multiple causes I am glued to Win 7.:evil:
Am I obliged to stay with ThinBasic 1.11 ?

Does the bundling issue is caused by W7 ?

Dany

Should work also on Windows 7 but some features not.
This is not a Win7 problem but a bug
Will check soon

ErosOlmi
29-01-2024, 23:18
I've uploaded again thinBasic version 1.12.0
I should have solved problems regarding accented letters in thinBundle and ASC debug message boxes.
Let me know if fixed for you too

On accented letters there is still a problem in thinAir Open file command.
HTML list is still broken and will prevent from opening a script with accented letters.
You can bypass the problem clicking on right button "Open Script ..."
I will try to solve in next thinBasic version 1.12.1

ErosOlmi
30-01-2024, 11:29
Sorry, updated again in https://www.thinbasic.com/downloads.html#downloads
Should have solved accented letters in thinAir Open Dialog again