Page 1 of 1

dictd 1.10 not worked with locale. (Reinstall resolved)

Posted: 8. Sep 2015, 09:49
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.

Re: dictd 1.10 not worked with locale.

Posted: 8. Sep 2015, 21:02
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?

Re: dictd 1.10 not worked with locale.

Posted: 11. Sep 2015, 09:09
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.

Re: dictd 1.10 not worked with locale.

Posted: 12. Sep 2015, 16:12
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.