-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unicode filesystem path support for Windows #116
Comments
While UTF-8 encoding would definitely be an option, these helpers aim to mimic
Lack of need and consistency. As you may have realized already, neither Tagging @clalancette and the @ros2/team for additional feedback. |
I wouldn't deviate at all. The goal would be to replace this interface with |
Right, exactly. And with Galactic probably switching to C++17 support, that may be feasible now. Whether we get to it is another question. |
Thanks all, that helps me understand the context a lot better. If I were to put in some time on this over the next few weeks what would be the recommended approach to solving this? |
The long-term plan is to remove So that leaves us with implementing this functionality in Does that all make sense? |
Makes sense. For a Foxy compatible option, would it be appropriate to grab an existing 3rd party filesystem header library and rely on that before later switching it to the standard lib? This one seems fairly popular. |
I have to say that I'm not enthusiastic about adding a new dependency that we'll have to vendor. While it is more work, could we just code the functionality into |
Is it off the table to simply include the single header file in the repo? If so, I'll just make a PR that uses |
I'm not opposed to including a dependency like the one you linked to, personally, since those are designed to be easily incorporated into a project. But I do agree with @clalancette that it's more straight forward to fix this as narrowly as possible in foxy, due to testing and ABI concerns (like if the size of For newer versions, like rolling and galactic, having this more complete implementation as a fallback isn't a terrible idea, imo. However, I have some lingering concerns about it:
|
So I did some experimenting and the external filesystem library doesn't even build on UWP anyways, which is my original problem. So it would seem the best option is to just update to C++17 and |
I'm trying to build this repository for Windows 10 UWP and am hitting the hardcoded error that unicode is not supported (from @hidmic in #35). From looking at this just for a few minutes, it seems it should be feasible to use the wide character versions of the Windows API calls and convert the data to a UTF8 encoded
std::string
in this case. Does this seem reasonable? Was there a reason it wasn't done this way initially?The text was updated successfully, but these errors were encountered: