dub icon indicating copy to clipboard operation
dub copied to clipboard

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

Open ghost opened this issue 2 years ago • 1 comments

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)

ghost avatar Jul 20 '23 21:07 ghost

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

CyberShadow avatar Jul 21 '23 04:07 CyberShadow