Menu

#993 Will not compile sources on build if path contains international characters

Release_xx.yy
fixed
Bug_Report
2022-03-24
2020-07-16
bsccara
No

On Code::Blocks 20.03 I've setup a small C++/wxWidgets project with just a couple of source files and and include file. The project's file structure follows the usual 'src/include/obj/bin'. While building the g++ compilation commands show up the build log without any errors but the build ultimately fails with missing object files, which in fact are missing in the obj directory.
The full project file path was <home dir="">/Programação/<project>. By moving the project to another directory without accentuated characters in it the project can now be built. So having accentuated characters causes Code:Blocks to fail the build process, specifically the compilation part as the linking seems to work as errors are reported.
If I run the command lines shown on the build log on a command prompt in the project's root directory they run without any problems.
I'm running Kubuntu 18.04 LTS 64 bits.</project></home>

Discussion

  • Miguel Gimenez

    Miguel Gimenez - 2020-07-16

    This is similar to ticket 800 and ticket 74

     
  • Teodor Petrov

    Teodor Petrov - 2020-07-16
    • labels: 20.03 --> Compiler
     
  • Manuel Gomez

    Manuel Gomez - 2022-03-20

    I can confirm this problem (in my case with a project having "ó" in the path) under Ubuntu 20.04.4 LTS. Locale is es_ES.UTF-8

    With the strace command one can see that the application runs an empty command instead of the compilation command.
    19766 execve("/bin/sh", ["/bin/sh", "-c", ""], 0x55be3183e030 / 73 vars / <unfinished ...=""></unfinished>

    If this is not easy to fix, one workaround would be to not run the command like this:
    "gcc -Wall -g -c \"/path_with_ó/Project/main.c\" -o obj/Debug/main.o"
    but without path, since the CWD is already on directory /path_with_ó/Project.

     

    Last edit: Manuel Gomez 2022-03-20
    • Andrew Cottrell

      Andrew Cottrell - 2022-03-20

      There are a few tickets about non ASCII chars in the src path causing problems.

       
  • Miguel Gimenez

    Miguel Gimenez - 2022-03-24

    On MSW with the current trunk, "Programação" and "Cojón" work as they should. I will test on Ubuntu 20.04 in a while.

     
  • Miguel Gimenez

    Miguel Gimenez - 2022-03-24

    It is a problem in wxWidgets 3.0 on Unix, fixed in wx3.1.

    I will try to fix this tomorrow.

     
  • Miguel Gimenez

    Miguel Gimenez - 2022-03-24
    • labels: Compiler --> Compiler, Linux, wx30
    • assigned_to: Miguel Gimenez
     
  • 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.