-
Notifications
You must be signed in to change notification settings - Fork 86
Fix language matching in Windows #260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@toyowata This should fix your problem, I'd appreciate it if you have a chance to test my branch! I wrote a test for it but nothing is as good as native Windows for this kind of stuff 😄 @theotherjimmy Could you please review? |
theotherjimmy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking the time to extend our test coverage.
|
Wow, a red-green refactor cycle. Nice! |
|
I locally applied your patch and the result is below: The reason is that the If I remove the utf-8 decoder call, it works in Japanese Windows. drive_list = re.match('\s*.*: ([A-Z:\\\\ ]*)', stdout).group(1) |
e4d0bca to
558c4a3
Compare
|
Thanks for the feedback @toyowata. I couldn't just remove the Any chance you could try it again @toyowata. |
|
@bridadan It looks fine. It's a bit odd, but that's what happens when you have an OS that has conflicting default encodings! |
558c4a3 to
b6d9cac
Compare
|
Thanks for your explanation. |
|
Looks like we're good to go then. |
Fixes #259.
Previously the Windows implementation relied on the language of the system to work correctly (specifically, English). This dependency has been removed. It should work on all languages now.