Skip to content
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

[cpp] Sys.setCwd, .deleteFile, .deleteDirectory, FileSystem.exists, .rename fail on Unicode path #8400

Closed
1 task
Aurel300 opened this issue Jun 10, 2019 · 2 comments · Fixed by #10590
Closed
1 task
Labels
bug platform-cpp Everything related to CPP / C++ unicode

Comments

@Aurel300
Copy link
Member

Aurel300 commented Jun 10, 2019

This is not Windows specific!

class Main {
  public static function main():Void {
    trace(Sys.getCwd());
    Sys.setCwd("\u0080");
    trace(Sys.getCwd());
  }
}
$ mkdir `printf "\xC2\x80"`
$ haxe --main Main --cpp out.cpp
...
$ out.cpp/Main
Main.hx:3: /cppcwd/
Main.hx:5: /cppcwd/

(xxd confirms it is the same path.)

Sys.deleteFile and Sys.deleteDirectory, FileSystem.rename, FileSystem.exists seem similarly affected.

Once fixed:

  • re-enable test marked with this issue number in tests/sys/src/TestUnicode.hx
@Aurel300 Aurel300 added bug platform-cpp Everything related to CPP / C++ unicode labels Jun 10, 2019
@Aurel300 Aurel300 changed the title [cpp] Sys.setCwd fails on Unicode path [cpp] Sys.setCwd, Sys.deleteFile, Sys.deleteDirectory fail on Unicode path Jun 10, 2019
@Aurel300 Aurel300 changed the title [cpp] Sys.setCwd, Sys.deleteFile, Sys.deleteDirectory fail on Unicode path [cpp] Sys.setCwd, .deleteFile, .deleteDirectory, FileSystem.exists, .rename fail on Unicode path Jun 10, 2019
@RealyUniqueName RealyUniqueName added this to the Bugs milestone Jun 12, 2019
@andreasdr
Copy link

Ok. Any plans when this will be fixed?

@andreasdr
Copy link

Hi,

we the SoccerTutor(https://www.soccertutor.com) devs really rely on Umlauts working with MacOSX/Windows/Linux and later Tablet.

So we like to offer a bounty to get this fixed, not sure if this is the right place here, but Ill ask here for it:

  • 400 EUR If this is fixed and we get at least some instructions to build our Haxe versions(not the newest currently) with this fix applied for MacOSX/Windows/Linux
  • 150 EUR BONUS if fixed by Tue 8th FEB

I am looking forward to hearing from you. Feel free to contact us using this email: andreas@drewke.net

Many thanx and

Best regards
Andreas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug platform-cpp Everything related to CPP / C++ unicode
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants