diff --git a/lib/Sabberworm/CSS/Value/Size.php b/lib/Sabberworm/CSS/Value/Size.php index 624805d0..05cf78c3 100644 --- a/lib/Sabberworm/CSS/Value/Size.php +++ b/lib/Sabberworm/CSS/Value/Size.php @@ -60,7 +60,8 @@ public function isRelative() { } public function __toString() { - return str_replace('0.', '.', $this->fSize) . ($this->sUnit === null ? '' : $this->sUnit); + $l = localeconv(); + return str_replace(array($l['decimal_point'], '0.'), '.', $this->fSize) . ($this->sUnit === null ? '' : $this->sUnit); } }