richthegeek / phpsass

A compiler for SASS/SCSS written in PHP, brought up to date (approx 3.2) from a fork of PHamlP: http://code.google.com/p/phamlp/
http://phpsass.com/
382 stars 83 forks source link

Locale problems... #162

Open niaccurshi opened 10 years ago

niaccurshi commented 10 years ago

Hey, just a quick note that while dealing with language parsing on a project the use of setlocale(LC_ALL) to the correct locale for the language completely screws up the use of decimal places.

I don't have the time right now to look for the best solution, however in order to get my project to work again I added

setlocale(LC_NUMERIC , 'en_US'); 

to my PHP before parsing the .scss files. Hope this helps someone else and leads to fix.