No PAGER on Windows
-p parameter doesn't work on Windows by default, more should be used for Windows
> glow -p doc.md
Error: exec: "less": executable file not found in %PATH%
but if I use pipes glow doc.md | more with non-ANSI files, something wrong with the encoding
> glow doc.md | more
╨Ю╨▒╤Й╨╕╨╡ ╨╖╨╜╨░╨╜╨╕╤П Computer Science: ╨░╨╗╨│╨╛╤А╨╕╤В╨╝╤Л ╨╕ ╨╕╤Е ╤Б╨╗╨╛╨╢╨╜╨╛╤Б╤В╤М, ╨╛╨┐╤В╨╕╨╝╨╕╨╖╨░╤Ж╨╕╤П,
╨░╤А╤Е╨╕╤В╨╡╨║╤В╤Г╤А╨░ ╨║╨╛╨╝╨┐╤М╤О╤В╨╡╤А╨░ (╨┐╤А╨╛╤Ж╨╡╤Б╤Б╨╛╤А, ╨┐╨░╨╝╤П╤В╤М, ╨║╤Н╤И, ╨▓╨▓╨╛╨┤/╨▓╤Л╨▓╨╛╨┤), ╨▒╨╕╤В╨╛╨▓╤Л╨╡
╨╛╨┐╨╡╤А╨░╤Ж╨╕╨╕, ╨┐╤А╨╛╤Ж╨╡╤Б╤Б ╤Б╨▒╨╛╤А╨║╨╕ ╨┐╤А╨╕╨╗╨╛╨╢╨╡╨╜╨╕╤П
while just glow doc.md has no issue with encoding and cat doc.md too... something goes wrong in pipes?
Setup Please complete the following information along with version numbers, if applicable.
- OS: Windows 10 Pro 22H2
- Shell: PowerShell
- Terminal Emulator: wt
- Locale: ru_RU.UTF-8
Can you try using Windows Terminal?
Terminal Emulator: wt
Can you attach a screenshot and doc.md?
A bit more details
> Get-WinSystemLocale
LCID Name DisplayName
---- ---- -----------
1049 ru-RU Russian (Russia)
Sounds like more not able to handle unicode
Damn. I'm just tried and you are absolutely right. I didn't expect that such a standard utility couldn't do something so obvious. So, no PAGER at all for Windows)
Try https://github.com/walles/moar
Thanks a lot
Do let us know if this is working for you and this issue can be closed then
Also, try changing your locale to English. Maybe that can help