Skip to content

Non-English directory name in a project leads to error #12

Open

Description

@mere-human

If there is a directory that contains e.g. characters in Chinese in its name, cppinclude stops with an error. Even if the directory doesn't contain any source files.

Steps to reproduce:

  1. Create a directory with a name 夹
  2. Run cppinclude in that directory

Result:

e:\tmp>cppinclude --version
0.3.0

e:\tmp>cppinclude.exe
Start initialization project ...
Start analyze sources ...
No mapping for the Unicode character exists in the target multi-byte code page.

e:\tmp>dir
 Volume in drive E has no label.
 Volume Serial Number is 4261-4543

 Directory of e:\tmp

01/25/2021  02:08 PM    <DIR>          .
01/25/2021  02:08 PM    <DIR>          ..
01/21/2021  10:23 PM           889,344 cppinclude.exe
01/25/2021  02:05 PM    <DIR>          夹
               1 File(s)        889,344 bytes
               3 Dir(s)  26,526,605,312 bytes free

image

Activity

  1. cppinclude commented on Jan 25, 2021

    @cppinclude
    Owner

    Thanks for report, we don't support path with Unicode yet. It will be fixed in future releases

  2. mere-human commented on Jan 25, 2021

    @mere-human
    Author

    Ok, looking forward to it!

    ignore_dirs doesn't work for such directories either.
    It seems I had to temporarily remove or rename such directories to run the analysis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions