! 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 !
Will not let configure some themes, if LC_NUMERIC is set to locale that uses ...
Status:
RESOLVED: DUPLICATE
Severity:
blocker
Product:
Xfce4-screensaver
Component:
General

Comments

Description Jarno Suni 2020-01-07 23:18:44 CET
$ LC_NUMERIC=fi_FI.UTF-8 xfce4-screensaver-configure xfce-blank
Traceback (most recent call last):
  File "/usr/bin/xfce4-screensaver-configure", line 756, in <module>
    configure(obj.to_dict())
  File "/usr/bin/xfce4-screensaver-configure", line 678, in configure
    win = ConfigurationWindow(parsed)
  File "/usr/bin/xfce4-screensaver-configure", line 395, in __init__
    widget = self.get_option_widget(opt)
  File "/usr/bin/xfce4-screensaver-configure", line 488, in get_option_widget
    value = self.get_double(opt["id"], opt["default"])
  File "/usr/bin/xfce4-screensaver-configure", line 518, in get_double
    value = self.xfconf_channel.get_double(option_id, default)
  File "/usr/bin/xfce4-screensaver-configure", line 83, in get_double
    return float(self._get_property(prop, default))
ValueError: could not convert string to float: '1,000000'

But 
$ LC_NUMERIC=C xfce4-screensaver-configure xfce-blank
opens the dialog.

Similar thing with molecule theme or apparently any that has a property of type Double. Maybe better to store as integer?
Comment 1 Jarno Suni 2020-01-08 14:50:54 CET
Created attachment 9357 
Get the properties in C locale to make float understand the strings
Comment 2 Jarno Suni 2020-01-08 18:49:51 CET
Created attachment 9359 
Maybe it is enough to convert double properties using locale-aware method.
Comment 3 Sean Davis editbugs 2020-01-15 11:57:40 CET

*** This bug has been marked as a duplicate of bug 16295 ***

Bug #16350

Reported by:
Jarno Suni
Reported on: 2020-01-07
Last modified on: 2020-01-15

People

Assignee:
Sean Davis
CC List:
0 users

Version

Attachments

Additional information