! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Clock doesn't work with accents
Status:
CLOSED: WORKSFORME
Severity:
trivial
Component:
clock-plugin

Comments

Description fwunix 2011-12-11 15:10:02 CET
When using a language that has accents like "á" the clock doesn't show the week day name properly when using the Orage clock, showing instead a weird character where should be an "á", for example in Brazilian Portuguese's "Sábado" (Saturday).

When using other clock plugins it's even worse: the clock crashes completely and disappears from the panel.

Also, when opening the calendar it displays "(null)" where it should be "Sáb".
Comment 1 Nick Schermer editbugs 2011-12-11 17:45:29 CET
This works fine in the panel's native clock.
Comment 2 juha editbugs 2011-12-11 20:26:52 CET
What is your locale setting?
$ locale
Comment 3 juha editbugs 2011-12-12 11:35:36 CET
I tested with 
$ locale
LANG=pt_BR.utf8
LC_CTYPE="pt_BR.utf8"
LC_NUMERIC="pt_BR.utf8"
LC_TIME="pt_BR.utf8"
LC_COLLATE="pt_BR.utf8"
LC_MONETARY="pt_BR.utf8"
LC_MESSAGES="pt_BR.utf8"
LC_PAPER="pt_BR.utf8"
LC_NAME="pt_BR.utf8"
LC_ADDRESS="pt_BR.utf8"
LC_TELEPHONE="pt_BR.utf8"
LC_MEASUREMENT="pt_BR.utf8"
LC_IDENTIFICATION="pt_BR.utf8"
LC_ALL=

and it worked fine. I saw Sábado and Sáb as expected both in Orage-clock and Orage calendar.

Do you see correct data in terminal with:
$ date --date="last Saturday"
Sáb Dez 10 00:00:00 EET 2011 


I tested with 
$ orage -v
	This is orage version 4.8.2.6-git

	Released under the terms of the GNU General Public License.
	Compiled against GTK+-2.20.1, using GTK+-2.20.1.
	Using DBUS for import.
	Using libnotify.
	Using automatic archiving.
	Using operating system package libical.
and my distro was Ubuntu 10.04 LTS

this looks more like distro issue actually.
Comment 4 fwunix 2011-12-19 01:45:50 CET
$ locale
LANG=pt_BR
LANGUAGE=pt_BR:pt:en
LC_CTYPE=pt_BR.UTF-8
LC_NUMERIC="pt_BR"
LC_TIME="pt_BR"
LC_COLLATE=pt_BR.UTF-8
LC_MONETARY="pt_BR"
LC_MESSAGES=pt_BR.UTF-8
LC_PAPER="pt_BR"
LC_NAME="pt_BR"
LC_ADDRESS="pt_BR"
LC_TELEPHONE="pt_BR"
LC_MEASUREMENT="pt_BR"
LC_IDENTIFICATION="pt_BR"
LC_ALL=

$ date --date "last Saturday"
S�b Dez 17 00:00:00 BRST 2011

I'm running XFCE on Xubuntu 10.11.
Comment 5 fwunix 2011-12-19 02:03:38 CET
Looks like I fixed it by changing the locale to use UTF-8.

Sorry for this guys. Not really a bug. The distro should be using UTF-8 though.

Thanks
Comment 6 juha editbugs 2011-12-19 07:55:57 CET
No problems. Good that it works now.

Bug #8240

Reported by:
fwunix
Reported on: 2011-12-11
Last modified on: 2011-12-19

People

CC List:
0 users

Version

Attachments

Additional information