sebastianbergmann/php-code-coverage — Issue #81: When running on a non-english locale system, broken css width property in coverage report
Author: emtou
Created: 2011-11-18 14:31:23+00:00
State: open

On my french-locale linux system, coverage reports show blank progress bars when the percentage is not an integer

example : style="width:69,811320754717%"

Tried setting LC_ALL, LANG and LANGUAGE environment variables to C or POSIX both in the shell and in phpuint.xml and nothing improves.

I wrote a quick patch to force PHP_CodeCoverage_Report_HTML_Renderer to use *AsString input in *_width data and it seems to do the job. Do you see a more elegant way to do it or should I submit this patch for merging ?