AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only

WC command not working in AIX machine in ZH_CN locale

  • 1.  WC command not working in AIX machine in ZH_CN locale

    Posted Fri September 18, 2009 01:39 AM

    Originally posted by: SystemAdmin


    Hi,

    We are using AIX 5.3 OS (6.1 also has same problem).

    When I am trying to use wc -c "filename" in terminal it is printing the file size.

    But when I change the terminal locale setting using export LC_ALL=ZH_CN.UTF-8 and try, it is giving an error in chinese saying (Invalid multibyte character).

    Please help me out with the reason why it is giving error and any alternative for this.
    Thanks in advance
    Kanaka
    #AIX-Forum