Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

App crashes using non-ascii path on windows #2215

Closed
sant9ga opened this issue Sep 20, 2016 · 9 comments
Closed

App crashes using non-ascii path on windows #2215

sant9ga opened this issue Sep 20, 2016 · 9 comments
Assignees
Labels
F2-bug 🐞 The client fails to follow expected behavior. M4-core ⛓ Core client code / Rust.
Milestone

Comments

@sant9ga
Copy link

sant9ga commented Sep 20, 2016

App closes in 1-2 sec after start. If start with .bat and pause, then I could see the error:
image

@rphmeier
Copy link
Contributor

rphmeier commented Sep 20, 2016

Probably unicode-related? Not sure if rocksdb can handle UTF-8 paths properly

@sant9ga
Copy link
Author

sant9ga commented Sep 20, 2016

Maybe. May I manually lead it to another folder?

@gavofyork gavofyork added the M4-core ⛓ Core client code / Rust. label Sep 20, 2016
@rphmeier
Copy link
Contributor

@sant9ga Yeah, try running with parity -d /path/to/ascii/folder as a workaround.

@sant9ga
Copy link
Author

sant9ga commented Sep 20, 2016

I've already renamed my username's folder into english, it helped!
But thanks for the responds!

@arkpar
Copy link
Collaborator

arkpar commented Sep 21, 2016

The problem is that rocksdb uses non-unicode windows API. (CreateFileA but not CreateFileW) So all the paths and error messages need to be converted between utf-8 and local codepage with MultiByteToWideChar and friends

@arkpar arkpar changed the title App crashes on win 8.1 x64. App crashes using non-ascii path on windows Sep 21, 2016
@arkpar arkpar added the F2-bug 🐞 The client fails to follow expected behavior. label Sep 21, 2016
@arkpar arkpar mentioned this issue Mar 12, 2017
@5chdn
Copy link
Contributor

5chdn commented May 9, 2017

This issue is labelled with bug: The client fails to follow expected behavior; and is inactive for more than 6 months. It's neither assigned nor linked to a milestone.

Please, decide on a deadline and assign this ticket to a developer within 7 days or close it if fixed otherwise.

@grbIzl
Copy link
Collaborator

grbIzl commented Jun 15, 2017

https://github.com/arkpar/rust-rocksdb/pull/10/ created in order to address the issue

@grbIzl
Copy link
Collaborator

grbIzl commented Jun 15, 2017

Sorry, correct PR is paritytech/rust-rocksdb#7

@arkpar
Copy link
Collaborator

arkpar commented Jun 22, 2017

Fixed by #5905

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
F2-bug 🐞 The client fails to follow expected behavior. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

No branches or pull requests

6 participants