-
Notifications
You must be signed in to change notification settings - Fork 384
Handle stdin on Windows using msvcrt functions #304
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
Current coverage is
|
|
I think I already have this in my #289 branch, but leaving this open in case I'm misremembering or if my implementation is missing something from here. |
|
Cool - when's that likely to be released? Right now, invoke simply doesn't work on Windows unless I pin to an older version... |
|
It's at the top of the priority list right now :) |
|
OK I think my implementation is close enough to yours, given that I refactored where some of these bits live / abstracted them slightly. I'm working on the branch today but pushed its current state: https://github.com/pyinvoke/invoke/compare/rest-of-289 Will close this now but feel free to comment on #289 if you identify more problems with how I'm using |
|
Fantastic - I'll have a look at #289 for you, probably tomorrow. Sorry if I was being a bit pushy over this :-) |
|
@bitprophet I'm not sure how to comment on that compare link you posted, so I'm going to post here. Why do you need to use
You may get better results with I assume from the name, that Overall, it feels to me like your separation of byte and character is muddled. You may be able to get things working for now, but I'd strongly recommend reviewing the code and making a clean separation between bytes and characters, or you'll spend forever fighting {de,en}coding issues. I'd be willing to do such a review, if you want - but it's not really appropriate for this change right now. Just avoid |
|
That code is (aside from the reorganization) ported straight from Fabric 1, whose Windows support (like this project's) comes entirely from users like you. So, I have no idea why I'm totally still not grokking the gory details of Python 3's bytes vs strings nonsense, despite trying to understand it for years, which is why that's all very muddled. I'm not paid enough to get it working perfectly so my MO has been to get things working for the base case on 2 and 3 and to rely on you & others to raise flags when things seriously break (and then to rely on you providing tests to help prove when things work or don't). Anyway let's take this to #289 from now so I'm not getting 2-3 times the thread notifications ;) thanks!! |
No description provided.