Non-standard characters in computer's name can break project

Post bugs related to the IDE here
User avatar
Azias
New User
New User
Posts: 7
Joined: Wed Oct 04, 2017 5:59 pm

Non-standard characters in computer's name can break project

Post by Azias »

System Info:
Windows 10 1709 x64 VM
Purebasic 5.70 LTS x64

Problem Encountered:
When using non-standard characters in the computer name and saving a PureBasic project, the project file becomes impossible to open unless you manually go into the file and delete the text in "project > section.name=data > lastopen.host".

If you open it by double-clicking it, it will just be opened like a text file and not a project, and by using the IDE menu, you get this error message: "The project file cannot be loaded. <path-to-project>"

In my case, I used the following name:
Image
And after saving the project, and opening it in notepad2, the following string was visible:
Image
And if I remove the first 12 bytes(4 characters) that are causing the problem, the project can be opened again.

If I change the computer name again so that the problematic characters are trimmed of, I can save and re-open it without any problem.

The new one I used:
Image
What was saved:
"THE_DOOT_ZONE_I"

Note:
I originally tried using emojis in the post, but I got the following SQL error:
General Error
SQL ERROR [ mysqli ]

Incorrect string value: '\xF0\x9F\x92\x80\xF0\x9F...' for column 'post_text' at row 1 [1366]

An SQL error occurred while fetching this page. Please contact the Board Administrator if this problem persists.
Image