Hi.

I have an issue with the Mojolicious::Controller. When calculating the
requests/s (in debug mode) this fails with the warning:

Argument "0,011113" isn't numeric in numeric eq (==) at
/<path>/Mojolicious/Controller.pm line 207.

​It looks like current locale is used when stringifying the decimal value
(running the code with "LC_ALL=C" do silence the warning). Is there a way
to make this conversion locale agnostic?

For the record:

$ locale
LANG=en_GB.UTF-8
LANGUAGE=en_GB:en
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC=en_DK.UTF-8
LC_TIME=en_DK.UTF-8
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY=en_DK.UTF-8
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER=en_DK.UTF-8
LC_NAME=en_DK.UTF-8
LC_ADDRESS=en_DK.UTF-8
LC_TELEPHONE=en_DK.UTF-8
LC_MEASUREMENT=en_DK.UTF-8
LC_IDENTIFICATION=en_DK.UTF-8
LC_ALL=
$

$ mojo version
CORE
  Perl        (v5.18.2, linux)
  Mojolicious (5.47, Tiger Face)

OPTIONAL
  EV 4.0+                 (4.15)
  IO::Socket::IP 0.20+    (0.25)
  IO::Socket::Socks 0.64+ (not installed)
  IO::Socket::SSL 1.84+   (1.965)

This version is up to date, have fun!
$
 ​


-- 
Pelle

Research is what I'm doing when I don't know what I'm doing.
- Wernher von Braun

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to