You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nonetheless, each time sway is started it uses the dot as decimal separator, and errors to my config at the line in which the decimal value is written. After erroring, reloading sway makes it read the config as expected (and thus without errors if in the config there are commas, with errors if there are dots).
A log with the error is here, and this is my config. The erroring lines are line 83 and 84 of the config.
I'm running sway 1.10.1, in arch linux.
The text was updated successfully, but these errors were encountered:
Maybe a call to setlocale(LC_ALL, "") is needed at some point? what about in main()?
Also, I noticed some inconsistency in the use of the utility function parse_float(): some handlers are using it (eg. input_cmd_pointer_accel), but others are not (eg. cmd_gaps). Any reason for that?
I'm up to open a PR.
EDIT: that said, I don't think it's a good idea to have per-locale configuration. If you switch locale, you need to change the configuration. Using just one locale (point as decimal notation in this case) improves interoperability.
Hello, I agree that using locale for the parsing is a bad idea. The problem is that when reloading sway is actually using locale.
Probably each choice would be acceptable, as long as the behaviour is consistent when starting and reloading
Hello, I am having a problem with the decimal separator of my config.
In my sistem, the default separator is set to a comma (as it is used in Italy).
locale
gives, as output,and
locale decimal_point
gives a comma.Nonetheless, each time sway is started it uses the dot as decimal separator, and errors to my config at the line in which the decimal value is written. After erroring, reloading sway makes it read the config as expected (and thus without errors if in the config there are commas, with errors if there are dots).
A log with the error is here, and this is my config. The erroring lines are line 83 and 84 of the config.
I'm running sway 1.10.1, in arch linux.
The text was updated successfully, but these errors were encountered: