Page 1 of 1

[SOLVED] hp-toolbox not working

PostPosted: Sep 4th, '11, 20:05
by djennings
I am trying to work out why the hp-toolbox (HP Device Manager) is not seeing my printer even though it is setup and is working perfectly under cups.

When hp-toolbox tries to connect to the cups server I see this message in the cups error log
Code: Select all
Unsupported character set "iso-8859-1"


On Googling I see that cups only supports UTF8 encoding and the advice given is to change the locale to UTF8. My system is already UTF8 according to draklocale

Is anyone experiencing the same thing or have any suggestions?

Re: hp-toolbox not working

PostPosted: Sep 4th, '11, 20:31
by doktor5000
Please show the output of
Code: Select all
locale

Could you also please try if
Code: Select all
LC_ALL=C hp-toolbox
works?

Re: hp-toolbox not working

PostPosted: Sep 4th, '11, 21:22
by djennings
Code: Select all
$ locale
LANG=en_GB
LC_CTYPE=en_GB
LC_NUMERIC=en_GB
LC_TIME=en_GB
LC_COLLATE=en_GB
LC_MONETARY=en_GB
LC_MESSAGES=en_GB
LC_PAPER=en_GB
LC_NAME=en_GB
LC_ADDRESS=en_GB
LC_TELEPHONE=en_GB
LC_MEASUREMENT=en_GB
LC_IDENTIFICATION=en_GB
LC_ALL=


Yes LC_ALL=C hp-toolbox works.

Re: hp-toolbox not working

PostPosted: Sep 4th, '11, 21:48
by doktor5000
locale output shows that your system is not setup as UTF-8 properly, it seems. Here it looks like that:
Code: Select all
[doktor5000@mageia1 ~]$ locale
LANG=de_DE.UTF-8
LC_CTYPE=de_DE.UTF-8
LC_NUMERIC=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LC_COLLATE=de_DE.UTF-8
LC_MONETARY=de_DE.UTF-8
LC_MESSAGES=de_DE.UTF-8
LC_PAPER=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_ALL=

Re: hp-toolbox not working

PostPosted: Sep 4th, '11, 22:05
by djennings
Hmmm

Code: Select all
# more /etc/sysconfig/i18n
LC_TELEPHONE=en_GB.UTF-8
LC_CTYPE=en_GB.UTF-8
LANGUAGE=en_GB.UTF-8:en_GB:en
LC_MONETARY=en_GB.UTF-8
LC_ADDRESS=en_GB.UTF-8
LC_COLLATE=en_GB.UTF-8
LC_PAPER=en_GB.UTF-8
LC_NAME=en_GB.UTF-8
LC_NUMERIC=en_GB.UTF-8
SYSFONT=lat0-16
LC_MEASUREMENT=en_GB.UTF-8
LC_TIME=en_GB.UTF-8
LANG=en_GB.UTF-8
LC_IDENTIFICATION=en_GB.UTF-8
LC_MESSAGES=en_GB.UTF-8



So if /etc/sysconfig/i18n says I am using UTF-8 why does the locale command not show the same?

Re: [Solved]hp-toolbox not working

PostPosted: Sep 4th, '11, 22:31
by djennings
OK found it. There was an old ~/.i18n file setting the locale to en_GB
Deleted it and now everything is OK
Thanks for the pointer