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
Fixed in git/master. setlocale() was called automatically by gtk_init(), but fortunately gtk contains gtk_disable_setlocale() call, which avoids this auto-cleverness. Similar fix was employed in gstreamer's override file, where numeric category locale was reverted to 'C'. However, there might be other less common libraries in gnome stack or even outside which do automatically call setlocale(LC_ALL, ""). I don't know how to handle this problem in a generic way.
The Lua functions tonumber and tostring use a dot as decimal separator. With lgi, it depends on the locale.
My locale is pt_br, the decimal separator is comma, so I get some unespected results. For example, running
results in
3.2
nil
3.2
nil
nil
3,2
Note that the result changes only after "local Gtk = lgi.Gtk".
The text was updated successfully, but these errors were encountered: