[bug?]xincludefile cannot have Chinese or Asia characters

Just starting out? Need help? Post your questions and find answers here.
User avatar
loadstone
User
User
Posts: 97
Joined: Wed Jan 16, 2008 11:28 am
Location: china

[bug?]xincludefile cannot have Chinese or Asia characters

Post by loadstone »

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!
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
Sergey
User
User
Posts: 57
Joined: Wed Jan 12, 2022 2:41 pm

Re: xincludefile cannot have Chinese or Asia characters

Post by Sergey »

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
juergenkulow
Enthusiast
Enthusiast
Posts: 581
Joined: Wed Sep 25, 2019 10:18 am

Re: xincludefile cannot have Chinese or Asia characters

Post by juergenkulow »

User avatar
loadstone
User
User
Posts: 97
Joined: Wed Jan 16, 2008 11:28 am
Location: china

Re: [bug?]xincludefile cannot have Chinese or Asia characters

Post by loadstone »

up
Diamond Sutra: all law I was into at, forbearance .
http://www.8do8.com
User avatar
idle
Always Here
Always Here
Posts: 5919
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: [bug?]xincludefile cannot have Chinese or Asia characters

Post by idle »

loadstone wrote: Tue Oct 24, 2023 4:37 amup
If you compile from the command line does it work?
It might be possible that its changes in the IDE causing the issue.
juergenkulow
Enthusiast
Enthusiast
Posts: 581
Joined: Wed Sep 25, 2019 10:18 am

Re: [bug?]xincludefile cannot have Chinese or Asia characters

Post by juergenkulow »

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 -

Fred
Administrator
Administrator
Posts: 18252
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: [bug?]xincludefile cannot have Chinese or Asia characters

Post by Fred »

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.
User avatar
loadstone
User
User
Posts: 97
Joined: Wed Jan 16, 2008 11:28 am
Location: china

Re: [bug?]xincludefile cannot have Chinese or Asia characters

Post by loadstone »

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.
:) thanks!
Diamond Sutra: all law I was into at, forbearance .
http://www.8do8.com
User avatar
loadstone
User
User
Posts: 97
Joined: Wed Jan 16, 2008 11:28 am
Location: china

Re: [bug?]xincludefile cannot have Chinese or Asia characters

Post by loadstone »

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 :|
Diamond Sutra: all law I was into at, forbearance .
http://www.8do8.com
Post Reply