[MacPorts] #71036: watch: --enable-watch8bit may be needed, else it may mangle UTF-8 output by commands

MacPorts noreply at macports.org
Fri Oct 4 11:05:34 UTC 2024


#71036: watch: --enable-watch8bit may be needed, else it may mangle UTF-8 output by
commands
-------------------------+--------------------
 Reporter:  TurtleWilly  |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:
 Keywords:               |       Port:  watch
-------------------------+--------------------
 By default the **watch** command seems to mangle UTF8 output:

 {{{
 $ watch echo "MacPortsさん、こんにちは!"
 }}}

 results in:

 {{{
 Every 2.0s: echo MacPortsさん、こんにちは!

 MacPorts      M-M-M-M
 }}}

 Note that the banner looks OK, but the actual output of the command gets
 mangled into those "M-M-" stuff.

 The configure script has an option to fix that: `--enable-watch8bit`, I
 also needed to apply an additional fix in watch.c itself and remove the
 "ncursesw/" prefix from the ncurses include. Afterwards the output looks
 as we would expect:

 {{{
 Every 2.0s: echo MacPortsさん、こんにちは!

 MacPortsさん、こんにちは!
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/71036>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list