Hey guys, I just got a review pointing out that ‘strftime’ is dependent on the 
locale used. This not only affects my patch but code already in Mesos: 
process/time.hpp and encoder.hpp both make use of fields which are locale 
specific. The question here is, how to deal with it?

Locales tend to be a pain since the functions handling them are not thread 
safe, so I would suggest setting a global locale for mesos programs (master and 
slaves) on start up, i.e. setlocale(LC_ALL, "C");

Reply via email to