Gtk locale issues in Perl 5.38
Hi guys, After migration to Perl 5.38 (1) we (as gmusicbrowser community) found some issues (2) that might be related to Gtk module and "locale" interpretation.
$ perl -E 'say $^V; use Gtk3; say Gtk3->VERSION;'
v5.38.2
0.038
$ env | grep '^LC\|^LANG'
LANG=uk_UA.UTF-8
LC_CTYPE=uk_UA.utf8
LC_COLLATE=C
$ perl -E 'use Gtk3 '-init'; say 1080/34;'
31,7647058823529
$ LC_NUMERIC=C perl -E 'use Gtk3 '-init'; say 1080/34;'
31.7647058823529
$ perl -E 'use Gtk3 '-init'; say 1080/34*0.8;'
0
$ LC_NUMERIC=C perl -E 'use Gtk3 '-init'; say 1080/34*0.8;'
25.4117647058824
I'm not sure, but there is a commit related to this issue (3).
Edited by Sergiy Borodych