A
A
askogorev2014-05-30 08:46:42
C++ / C#
askogorev, 2014-05-30 08:46:42

How to get the current system localization (C++)?

I would like to get something like Russian_Russia.UTF-8.
auto locale = std::setlocale(LC_ALL, "")
returns what I want on Windows but doesn't return on OSX. On OSX, the result of the operation is "C". (classic encoding as I understand it)
How can I cross-platform get the current language of the operating system?
Is there a solution in boost?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2014-05-30
@EvgenijDv

Look here , it might help

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question