[wp-trac] [WordPress Trac] #43668: Image cropping fails for many PHP locales, if set

WordPress Trac noreply at wordpress.org
Fri Mar 30 16:12:12 UTC 2018


#43668: Image cropping fails for many PHP locales, if set
--------------------------+-----------------------------
 Reporter:  knutsp        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:
 Severity:  normal        |   Keywords:
  Focuses:  javascript    |
--------------------------+-----------------------------
 If{{{#!php
 <?php
 setlocale( LC_NUMERIC /*or LC_ALL */, 'nb_NO' );
 }}}

 is used then Media image cropping fails and selection input fields show
 `Infinity`. It works fine with 'en_US', btw.

 If #17268 is implemented, I guess it includes use of `setlocale'.

 Anyway, image cropping, and other internal passing of numeric data insede
 an application, should work independently of how numbers are to displayed
 according to a locale.

 I don't know which file or script to look into, to suggest a patch. Any
 help appreciated.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43668>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list