dictd 1.10 not worked with locale. (Reinstall resolved)

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
zw963
Posts: 82
Joined: 13. Mar 2014, 18:36

dictd 1.10 not worked with locale. (Reinstall resolved)

Post by zw963 »

run translate test with dictd, complaint error.

Code: Select all

 ☠  $ command dictd -c ~/Dropbox/dict/dictd.conf -t 'hello'
:I: 26088 starting dictd 1.10.0/rf on Linux 3.10.17 Tue Sep  8 17:32:20 2015
database langdao-ce {
   data       /home/zw963/Dropbox/dict/share/langdao-ce.dict.dz
   index      /home/zw963/Dropbox/dict/share/langdao-ce.index
}
database langdao-ec {
   data       /home/zw963/Dropbox/dict/share/langdao-ec.dict.dz
   index      /home/zw963/Dropbox/dict/share/langdao-ec.index
}
database wn {
   data       /home/zw963/Dropbox/dict/share/wn.dict.dz
   index      /home/zw963/Dropbox/dict/share/wn.index
}
:E: locale 'C' can not be used for utf-8 dictionaries. Exiting
my locale settings is:

Code: Select all

export LANG=en_US.utf8
export LC_CTYPE=zh_CN.utf8
export LC_NUMERIC=en_US.utf8
export LC_TIME=en_US.utf8
export LC_MONETARY=en_US.utf8
export LC_MESSAGES=en_US.utf8
export LC_PAPER=en_US.utf8
export LC_NAME=en_US.utf8
export LC_ADDRESS=en_US.utf8
export LC_TELEPHONE=en_US.utf8
export LC_MEASUREMENT=en_US.utf8
export LC_IDENTIFICATION=en_US.utf8
export LC_ALL=
I try this:

Code: Select all

 ☠  $ command dictd -c ~/Dropbox/dict/dictd.conf --locale=zh_CN.utf8 -t 'hello'
:I: 3253 starting dictd 1.10.0/rf on Linux 3.10.17 Tue Sep  8 17:38:06 2015
invalid locale 'zh_CN.utf8'
I try any locale to --locale, all failed, I can't start this service as usual. (Slackware is worked)
I change utf8 to UTF-8 in every place, still not work for me.

Thanks.
Last edited by zw963 on 12. Sep 2015, 16:13, edited 1 time in total.
User avatar
tsuren
Posts: 206
Joined: 7. Jun 2009, 17:32
Location: France

Re: dictd 1.10 not worked with locale.

Post by tsuren »

Could you post

Code: Select all

locale
? I've never used this application, so could you please let me know what it does and how to use it? Did you install it with sourcery?
'Tommorow is like today, just happens tomorrow.'
zw963
Posts: 82
Joined: 13. Mar 2014, 18:36

Re: dictd 1.10 not worked with locale.

Post by zw963 »

tsuren wrote:Could you post

Code: Select all

locale
? I've never used this application, so could you please let me know what it does and how to use it? Did you install it with sourcery?

Code: Select all

 ☠  $ locale
LANG=en_US.utf8
LC_CTYPE=zh_CN.utf8
LC_NUMERIC=en_US.utf8
LC_TIME=en_US.utf8
LC_COLLATE=C
LC_MONETARY=en_US.utf8
LC_MESSAGES=en_US.utf8
LC_PAPER=en_US.utf8
LC_NAME=en_US.utf8
LC_ADDRESS=en_US.utf8
LC_TELEPHONE=en_US.utf8
LC_MEASUREMENT=en_US.utf8
LC_IDENTIFICATION=en_US.utf8
LC_ALL=
dictd is a dictionary daemon, it include a sever and a client, client can be invoke in terminal to
search a translate. I compile it some year's ago, it worked in slackware 14, 14.1.
it not seem like missing some library, just locale missing ?

thanks.
zw963
Posts: 82
Joined: 13. Mar 2014, 18:36

Re: dictd 1.10 not worked with locale.

Post by zw963 »

tsuren wrote:Could you post

Code: Select all

locale
? I've never used this application, so could you please let me know what it does and how to use it? Did you install it with sourcery?
Because change too many settings before, I can't figure out what wrong, so I reinstall system, this problem is resolved.
I not change any users script or settings, so it should be some change before to system, or some package conflict.

Thans every one.
Post Reply