maxpert / LevelDBWinRT

Windows Runtime Component for LevelDB. This is an unofficial port of LevelDB for Windows 10 Universal Platform (UWP)
BSD 3-Clause "New" or "Revised" License
90 stars 4 forks source link

IO Error when passing absolute path with special symbols #2

Closed iamnikv closed 3 years ago

iamnikv commented 4 years ago

Hello again :)

I am getting an IO Error every time I try to create a database in a UWP application where the username of the user of the PC is for example "Lãy ôkne" and the path to the db is in the AppData package folder of my UWP application which in turn is residing in the current user folder in the 'Users' folder.

That translates to an absolute path of C:\Users\Lãy ôkne\AppData\Local\Packages\AppPackageName\LocalState\db.

Error: IO error: C:\Users\Lãy ôkne\AppData\Local\Packages\AppPackageName\LocalState\db/MANIFEST-000001 Append: cannot write

Is there a list of symbols that are not supported by the library?

maxpert commented 4 years ago

Library uses regular wstring to specify a path. You can view that code over here https://github.com/maxpert/LevelDBWinRT/blob/master/LevelDBWinRT.Shared/DB.cpp#L90-L96. I wonder if there is something wrong with that conversion or the filesystem itself.

maxpert commented 4 years ago

Let me know if you still see the issue.

iamnikv commented 4 years ago

Are you able to reproduce the issue if you try to create a db containing a folder with the name "Lãy ôkne" in the path? I have not done anything different to expect a different result.

maxpert commented 4 years ago

I have not reproduced the issue but since you have the code you can probably put a break-point on the lines I suggested above and see what is going on. That will help me get to a fix quicker.

iamnikv commented 4 years ago

Ok, I will check it later today and tell you what I find.

maxpert commented 3 years ago

Closing due to no activity.