0

I need to parse a date time in a non-English language, on a machine running with an en-us locale. The easy solution to this problem would be to do setlocale and then proceed to strptime.

The problem is that if you setlocale, it gets set program-wide. However, due to the nature of my program, many threads are running and run locale sensitive processes.

This means setlocale is not an option, because it messes with it globally. How can I strptime with a different locale?

Misguided
  • 1,302
  • 1
  • 14
  • 22

0 Answers0