Lightning.NET icon indicating copy to clipboard operation
Lightning.NET copied to clipboard

Missing support for extended unicode path names

Open bartwe opened this issue 3 years ago • 2 comments

Please use Marshal.StringToCoTaskMemUTF8 to pass path as an utf8 string instead of the letting the default ansi marshal happen in the dllimport.

bartwe avatar Dec 30 '21 00:12 bartwe

I'm assuming that it might be more ideal to Use the technique described here instead? Or am I missing something?

https://stackoverflow.com/questions/17808003/dllimport-ansi-vs-unicode

CoreyKaylor avatar Jan 05 '22 14:01 CoreyKaylor

That would require changes to the native side to accept the utf16 widechar string when passing unicode. This would still require changes on the native side but would work correctly by default on linux.

bartwe avatar Jan 05 '22 15:01 bartwe