dlang / dub

Package and build management system for D
MIT License
673 stars 230 forks source link

Error, "Cannot create directory" with non ascii chars in username #2675

Open ghost opened 1 year ago

ghost commented 1 year ago

_moved from https://issues.dlang.org/show_bug.cgi?id=24053, so dont count on me for more details, however you can reach the original reporter on bugzilla at least_

When using DUB (from DMD Compiler) for compile a D project, it gives error "Cannot create directory" and aborts compiling if windows username has a non english character in it, Non english character gets replaced by weird symbols. When DUB given admin permissions, it makes a new folder in C:\Users\ with same name as windows username but non english characters gets replaced by same weird symbols, and it compiles and creates executable as normal. This issue happens on latest beta version of DMD (Beta 2.105.0-beta.1)

CyberShadow commented 1 year ago

It's probably because we use C stdio which does not support unicode?