Author Topic: another QB64IDE bug2  (Read 2886 times)

0 Members and 1 Guest are viewing this topic.

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
another QB64IDE bug2
« on: January 25, 2020, 03:18:22 pm »
Hi guys
I found another feedback about QB64IDE
it is about menu  command Open/Save...
when you try to Open/Save a file  from/into a folder that it is recognized in the dialogbox
you'll get this result...
  [ You are not allowed to view this attachment ]  

(following the suggestion of Fellippe I download the Dev version 1.4 and I try also this bug into the 2 ide 1.3 and 1.4... I've gotten different final behaviour with the same result....)

in version 1.3 after click the OK button of dialog box you'll get back the error message "Path not found"

in version 1.4  if you click the OK button of dialog box you'll get nothing and stuck in dialogbox (you can escape with CANCEL button)

as you can see in screenshot the folder uses a character of my native language that is not managed by INPUT/PRINT and other I/O keywords of QB64 if we don't remap the Keyboard using Steve's utility or the code of Petr.

Please try using letters of your native language that are extra to english alphabet.
I attach the folder with the .BAS that I have used.

Thanks to read
Programming isn't difficult, only it's  consuming time and coffee

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Re: another QB64IDE bug2
« Reply #1 on: January 25, 2020, 05:37:13 pm »
Hi TempodiBasic,

I tried to create a folder using unicode characters in the name. This folder will show up in the folder list, but it has a distorted name. Unicode characters are written nonsensically (I have the default IDE setting). When you open this folder, no files in this folder are displayed, even though the folder contains them. This is likely due to a badly translated folder name followed by an invalid path and therefore an empty folder will be displayed. IDE 1.3 behaves the same way.

This is the reason in the past why I dealt with short and long file and folder names. Libraries from Eoredson provide a solution to this problem under Windows. I don't know how to deal with it in other systems. The libraries, including the programs (and the program I used to do it for), are here somewhere on the forum.

You can set the font in the DISPLAY item, but this has no effect on file and folder names, they are still displayed poorly, although the unicode text after this change is fine in the IDE after writing this.

Here I noticed the fix, IDE 1.4 already correctly centered queries to save the program when the font is used. This is a very pleasant change.