Skip to content

nob_read_entire_dir corrupts filenames containing wide UTF charachters on Windows #243

@Stemt

Description

@Stemt

I'm using the mingw compiler in a MSYS2 UCRT64 environment.

I dont have a lot of experience with the Win32 api but I've got it narrowed down to the FindFirstFile/FindNextFile of which probably the narrow versions are being used.

These seem to truncate the individual charachters by dropping the extra byte instead of doing something sensible like throwing an error.

nob.h should probably be explicitly using the wide versions of these functions and converting them to utf-8.

I will try to work out a sensible solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions