a little correction to the locale fix to allow the usage of printf variants that takes locale_t as a parameter