less
less copied to clipboard
Windows: UTF-8 input doesn't quite work
When building less on Windows (with Visual C++) utf-8 input (when the codepage for the current console is set to 65001), doesn't work correctly.
When I press / to enter search and then enter an "æ", for instance, it doesn't display anything and freezes up or starts flashing a lot and doesn't respond after that. On an older machine it doesn't do this, but instead turns the æ into "^@'" (and ø and å into "^@(" and "^@^Z" respectively).
The version shipped with git, for example, doesn't have this problem, but is also not built against Visual C++, but rather MSYS2.