Menu

#74 Fail to build project when project path contains non-ASCII characters & I18N is enabled

Release_xx.yy
fixed
nobody
Bug_Report
2022-03-24
2014-10-29
No

As title

build log(when I18N is disabled):

gcc -Wall -g  -c "/home/Vdragon/Workspace/Programming/My_projects/C程式設計世界哈囉!/Source code/Hello C world!.c" -o "obj/Debug/Source code/Hello C world!.o"
g++  -o bin/Debug/C程式設計世界哈囉! "obj/Debug/Source code/Hello C world!.o"   
Output file is bin/Debug/C程式設計世界哈囉! with size 8.18 KB
Process terminated with status 0 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))

build log(when I18N is enabled and language is changed to zh_TW):

gcc -Wall -g  -c "/home/Vdragon/Workspace/Programming/My_projects/C程式設計世界哈囉!/Source code/Hello C world!.c" -o "obj/Debug/Source code/Hello C world!.o"
g++  -o bin/Debug/C程式設計世界哈囉! "obj/Debug/Source code/Hello C world!.o"   
gcc: error: /home/Vdragon/Workspace/Programming/My_projects/pI/Source code/Hello C world!.c: 沒有此一檔案或目錄
gcc: fatal error: no input files
compilation terminated.
Process terminated with status 4 (0 minute(s), 0 second(s))
2 error(s), 0 warning(s) (0 minute(s), 0 second(s))

As you can see the command during the linking phase failed as the non-ASCII part of path turned into garbled characters.

You may download the example source-code at the following address, the Code::Blocks project file is located under "Build solutions/Code::Blocks/" sub-directory.
https://drive.google.com/file/d/0B3e9XCL1ZWE8M3NMRGJDdHQ5WTA/view?usp=sharing

Reporter's environment

Operating system

Ubuntu 14.04 GNU/Linux x86 32-bit

Locale

zh_TW.UTF-8

Discussion

  • V字龍(Vdragon)

    UPDATE: fix Markdown fail

    build log(when I18N is disabled):

    gcc -Wall -g -c "/home/Vdragon/Workspace/Programming/My_projects/C程式設計世界哈囉!/Source code/Hello C world!.c" -o "obj/Debug/Source code/Hello C world!.o"
    g++ -o bin/Debug/C程式設計世界哈囉! "obj/Debug/Source code/Hello C world!.o"
    Output file is bin/Debug/C程式設計世界哈囉! with size 8.18 KB
    Process terminated with status 0 (0 minute(s), 0 second(s)) 0 error(s), 0 warning(s) (0 minute(s), 0 second(s))

    build log(when I18N is enabled and language is changed to zh_TW):

    gcc -Wall -g -c "/home/Vdragon/Workspace/Programming/My_projects/C程式設計世界哈囉!/Source code/Hello C world!.c" -o "obj/Debug/Source code/Hello C world!.o"
    g++ -o bin/Debug/C程式設計世界哈囉! "obj/Debug/Source code/Hello C world!.o"
    gcc: error: /home/Vdragon/Workspace/Programming/My_projects/pI/Source code/Hello C world!.c: 沒有此一檔案或目錄(file not found)
    gcc: fatal error: no input files compilation terminated.
    Process terminated with status 4 (0 minute(s), 0 second(s)) 2 error(s), 0 warning(s) (0 minute(s), 0 second(s))

     

    Last edit: V字龍(Vdragon) 2014-10-29
  • ollydbg

    ollydbg - 2014-10-31
    • labels: encoding, CJKV, build, I18N, GNU/Linux --> encoding, CJKV, build, I18N, GNU/Linux, Compiler
     
  • Morten MacFly

    Morten MacFly - 2015-02-07
    • Type: --> Undefined
     
  • Teodor Petrov

    Teodor Petrov - 2016-01-19
    • Type: Undefined --> Bug_Report
     
  • Teodor Petrov

    Teodor Petrov - 2020-07-16
    • Milestone: Next_Release --> Release_xx.yy
     
  • Miguel Gimenez

    Miguel Gimenez - 2022-03-24
    • status: open --> fixed
     
  • Miguel Gimenez

    Miguel Gimenez - 2022-03-24

    Fixed in [r12761].

     

    Related

    Commit: [r12761]


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.