Problem with wc command in AIX in ZH_CN locale

Hi,

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) and not printing the size. Same problem I am facing for all non english locales.

Please help me out with the reason why it is giving error and any alternative for this.

Thanks in advance
Kanaka

Hey

What are the following environment variables set to?

LANG
LC_ALL
LC_CTYPE
LC_MESSAGES
NLSPATH

Bala....

Hi,

Here are the environment variables

# echo $NLSPATH
/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat

# locale
LANG=ZH_CN
LC_COLLATE="ZH_CN.UTF-8"
LC_CTYPE="ZH_CN.UTF-8"
LC_MONETARY="ZH_CN.UTF-8"
LC_NUMERIC="ZH_CN.UTF-8"
LC_TIME="ZH_CN.UTF-8"
LC_MESSAGES="ZH_CN.UTF-8"
LC_ALL=ZH_CN.UTF-8

Regards,
Kanaka