You are not logged in.

#1 2014-01-08 13:52:35

eskibear
Member
Registered: 2014-01-08
Posts: 3

[Solved]output of `watch` doesn't show non-english characters

Using `watch`, the output can only show English characters in Archlinux, but in Ubuntu, it works well.
I've googled webs and searched the ArchWiki but to find nothing.


Following is the result in my laptop with Archlinux.

[six@localhost /tmp]$ uname -a
Linux localhost 3.12.6-1-ARCH #1 SMP PREEMPT Fri Dec 20 19:39:00 CET 2013 x86_64 GNU/Linux

[six@localhost /tmp]$ cat tmpfile 
English:    alpha
Greek:      α
Chinese:    阿尔法

[six@localhost /tmp]$ watch "cat tmpfile"

Every 2.0s: cat tmpfile                                                                                                                           Wed Jan  8 21:40:32 2014

English:    alpha
Greek:
Chinese:

Following is the result in my PC with Archlinux.

[six@eskibear /tmp]$uname -a
Linux eskibear.info 3.12.6-1-ARCH #1 SMP PREEMPT Fri Dec 20 19:39:00 CET 2013 x86_64 GNU/Linux

[six@eskibear /tmp]$cat tmpfile 
English:    alpha
Greek:      α
Chinese:    阿尔法

[six@eskibear /tmp]$watch "cat tmpfile"
Every 2.0s: cat tmpfile                                                                                                                           Wed Jan  8 21:42:24 2014

English:    alpha
Greek:
Chinese:

Following is the result in Ubuntu.

cit@cit-HP-Z220-SFF-Workstation:~$ uname -a
Linux cit-HP-Z220-SFF-Workstation 3.8.0-32-generic #47-Ubuntu SMP Tue Oct 1 22:35:23 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

cit@cit-HP-Z220-SFF-Workstation:/tmp$ cat tmpfile 
English:    alpha
Greek:      α
Chinese:    阿尔法

cit@cit-HP-Z220-SFF-Workstation:/tmp$ watch "cat tmpfile"

Every 2.0s: cat tmpfile                                                                                                                           Wed Jan  8 21:45:20 2014

English:    alpha
Greek:      α
Chinese:    阿尔法

I cannot figure out why. Looking forward to your help smile

Last edited by eskibear (2014-02-01 00:36:11)

Offline

#2 2014-01-08 15:42:01

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]output of `watch` doesn't show non-english characters

/usr/bin/watch is owned by procps-ng 3.3.9-1

What application and what version is it for Ubuntu?

Offline

#3 2014-01-08 16:18:54

eskibear
Member
Registered: 2014-01-08
Posts: 3

Re: [Solved]output of `watch` doesn't show non-english characters

karol wrote:
/usr/bin/watch is owned by procps-ng 3.3.9-1

What application and what version is it for Ubuntu?


I use apt-show-version and dpkg, and following is the output.

cit@cit-HP-Z220-SFF-Workstation:~$ apt-show-versions -p procps
procps/raring-updates uptodate 1:3.3.3-2ubuntu5.3

cit@cit-HP-Z220-SFF-Workstation:~$ dpkg -s procps
Package: procps
Status: install ok installed
Priority: important
Section: admin
Installed-Size: 628
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Multi-Arch: foreign
Version: 1:3.3.3-2ubuntu5.3
Provides: watch
Depends: libc6 (>= 2.15), libncurses5 (>= 5.5-5~), libncursesw5 (>= 5.6+20070908), libprocps0 (>= 1:3.3.2-1), libtinfo5, upstart-job, lsb-base (>= 3.0-10), initscripts
Recommends: psmisc
Breaks: guymager (<= 0.5.9-1), open-vm-tools (<= 2011.12.20-562307-1), xmem (<= 1.20-27.1)
Conflicts: pgrep (<< 3.3-5), w-bassman (<< 1.0-3)
Conffiles:
 /etc/init/procps.conf 96170a339d08797dc90d69b01d6bf610
 /etc/sysctl.conf d1cb9fea7a813e02111874f040cfc04b
 /etc/sysctl.d/README c20074b9b11a5202758c69d7bcb6996f
 /etc/sysctl.d/10-ipv6-privacy.conf e9473d12b4a7069d6a3ca8b694511ddf
 /etc/sysctl.d/10-zeropage.conf 8d7193abcc4dfedaf519dd03016a5e59
 /etc/sysctl.d/10-kernel-hardening.conf 5c1388f00011a287cdeba60208c674e1
 /etc/sysctl.d/10-network-security.conf 4ac7258f5336e7eeaf448c05ab668d3c
 /etc/sysctl.d/10-link-restrictions.conf 8568316f2baa8db06554dab91f93a161
 /etc/sysctl.d/10-ptrace.conf 47f40494b2fc698e15549e0a4a79e81c
 /etc/sysctl.d/10-console-messages.conf 154f6f5c5810d10bb303fb6a8e907c6a
 /etc/sysctl.d/10-magic-sysrq.conf b3059f2835f17c97265433fdfdee358f
Description: /proc file system utilities
 This package provides command line and full screen utilities for browsing
 procfs, a "pseudo" file system dynamically generated by the kernel to
 provide information about the status of entries in its process table
 (such as whether the process is running, stopped, or a "zombie").
 .
 It contains free, kill, pkill, pgrep, pmap, ps, pwdx, skill, slabtop,
 snice, sysctl, tload, top, uptime, vmstat, w, and watch.
Homepage: http://gitorious.org/procps
Original-Maintainer: Craig Small <csmall@debian.org>

Offline

#4 2014-01-31 11:50:00

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]output of `watch` doesn't show non-english characters

It works for me now.

$ uname -a
Linux black 3.13.1-1-ARCH #1 SMP PREEMPT Wed Jan 29 15:29:08 CET 2014 i686 GNU/Linux

Offline

#5 2014-02-01 00:34:29

eskibear
Member
Registered: 2014-01-08
Posts: 3

Re: [Solved]output of `watch` doesn't show non-english characters

karol wrote:

It works for me now.

$ uname -a
Linux black 3.13.1-1-ARCH #1 SMP PREEMPT Wed Jan 29 15:29:08 CET 2014 i686 GNU/Linux

Me too. 
It seems bug fixed in this update. Thank you all.

Offline

Board footer

Powered by FluxBB