Under the new version 6.03 final:
The directory contained after xincludefile (includefile) cannot have Chinese or Asia characters, otherwise it will prompt that the file cannot be found. However, double-click on the ide to open the file. The file exists and the directory is correct
For example:
xincludefile D:\其他程序\PUREBASIC\include\GetCpuUsage.pbi
(File not found )
6.02 final Compilation passed
In addition, there will be an error prompt when running and exiting the IDE under the 6.03 final version of xp!
[bug?]xincludefile cannot have Chinese or Asia characters
[bug?]xincludefile cannot have Chinese or Asia characters
Last edited by loadstone on Tue Oct 24, 2023 4:36 am, edited 1 time in total.
Diamond Sutra: all law I was into at, forbearance .
http://www.8do8.com
http://www.8do8.com
Re: xincludefile cannot have Chinese or Asia characters
The same in Russian viewtopic.php?p=605652#p605652
As an option, turn on the beta version of Windows, after which the file is located
As an option, turn on the beta version of Windows, after which the file is located
-
- Enthusiast
- Posts: 581
- Joined: Wed Sep 25, 2019 10:18 am
Re: [bug?]xincludefile cannot have Chinese or Asia characters
up
Diamond Sutra: all law I was into at, forbearance .
http://www.8do8.com
http://www.8do8.com
Re: [bug?]xincludefile cannot have Chinese or Asia characters
If you compile from the command line does it work?
It might be possible that its changes in the IDE causing the issue.
-
- Enthusiast
- Posts: 581
- Joined: Wed Sep 25, 2019 10:18 am
Re: [bug?]xincludefile cannot have Chinese or Asia characters
Code: Select all
PureBasic 6.03 LTS - C Backend (Linux - x64)
Loading external modules...
Loading 'c' subsystem
Starting compilation...
Including source: /tmp/其他程序/test.pb
2 lines processed.
Creating the executable.
- Feel the ..PuRe.. Power -
Re: [bug?]xincludefile cannot have Chinese or Asia characters
I will take a closer look, the compiler on Windows isn't using Unicode file function for now, so as we change the communication between the IDE and the compiler as UTF8, it could be the issue.
Re: [bug?]xincludefile cannot have Chinese or Asia characters
Fred wrote: Tue Oct 24, 2023 9:13 am I will take a closer look, the compiler on Windows isn't using Unicode file function for now, so as we change the communication between the IDE and the compiler as UTF8, it could be the issue.

Diamond Sutra: all law I was into at, forbearance .
http://www.8do8.com
http://www.8do8.com
Re: [bug?]xincludefile cannot have Chinese or Asia characters
6.04 final demo
@fred
6.03 compilation prompt from can not find the directory,6.04 version click to compile becomes unable to open the directory, the Chinese directory in the error prompt is still garbled,6.02 Everything is ok
@fred
6.03 compilation prompt from can not find the directory,6.04 version click to compile becomes unable to open the directory, the Chinese directory in the error prompt is still garbled,6.02 Everything is ok

Diamond Sutra: all law I was into at, forbearance .
http://www.8do8.com
http://www.8do8.com