For some reason it cut off my mail...

 

I tried using ReadConsoleW to make things easier, but that doesn't work with redirected console handles. So I have to do it with ReadFile. I also planned to use that function to read from an handle for reading line-by-line from files, too.

 

reg uses GetConsoleOutputCP, which would break the tests

I wrote for find - so I can't really use that either.

 

Question is, is mine still a bad approach, what'd you suggest?

 

 

Regards,

Fabian Maurer