Fix bugs for some locales!

I had to change this too because this class overwrites the parsePattern() method.