procs: invalid charset name

FAIL:

~
❯ procs
invalid charset name

SUCCESS:

~
❯ echo $LANG                                                                                   
zh_CN.UTF-8
                                                                                                               
~
❯ LANG=en_US.UTF-8 procs                                    

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 30 (12 by maintainers)

Commits related to this issue

Most upvoted comments

Thanks all. I’ll release v0.13.2 with the workaround.

I am using f3518056f7a74abd2509080547c769f960ec6f39 and there is no problem at present.

Latest commit works for me.

Can this issue be renamed? I’m hitting it too, seeing the exact same nondeterministic behaviour, without the zh_CN.UTF-8. And from reading discussion, looks like it’s not specific to that env.

To help anyone else: short of dropping in binaries, the workaround is to disable paging: --pager disable. This would be good at the top as well.

@MithicSpirit OsString is not null-terminated. The cause of this issue seems to be in pager crate, I sent the PR to fix it.

https://gitlab.com/imp/pager-rs/-/merge_requests/8

@dalance Thank you for your help 😃

less-487.zip

Could you try the attached less which is show the passed value of LESSCHARSET?

$ unzip less-487.zip
$ cd less-487
$ ./configure
$ make

.config/procs/config.toml

[pager]
command = "path to the built binary"