\doxysubsection{locale.\+h functions.}
\hypertarget{group__Evil__Locale__Group}{}\label{group__Evil__Locale__Group}\index{locale.h functions.@{locale.h functions.}}


This header provides functions ported from Unix in locale.\+h.  


\doxysubsubsubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{group__Evil__Locale__Group_ga7195d6f0a8d1b9d164a3988a1b8249e8}{LC\+\_\+\+MESSAGES}}~1729
\begin{DoxyCompactList}\small\item\em New locale value, based on the one in libintl.\+h. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
EVIL\+\_\+\+API char \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{group__Evil__Locale__Group_ga2ebcd357971e37f9236cb3378e951239}{evil\+\_\+setlocale}} (int category, const char \texorpdfstring{$\ast$}{*}locale)
\begin{DoxyCompactList}\small\item\em Return the string associated to the given locale and category. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsubsection{Detailed Description}
This header provides functions ported from Unix in locale.\+h. 



\doxysubsubsection{Macro Definition Documentation}
\Hypertarget{group__Evil__Locale__Group_ga7195d6f0a8d1b9d164a3988a1b8249e8}\label{group__Evil__Locale__Group_ga7195d6f0a8d1b9d164a3988a1b8249e8} 
\index{locale.h functions.@{locale.h functions.}!LC\_MESSAGES@{LC\_MESSAGES}}
\index{LC\_MESSAGES@{LC\_MESSAGES}!locale.h functions.@{locale.h functions.}}
\doxysubsubsubsection{\texorpdfstring{LC\_MESSAGES}{LC\_MESSAGES}}
{\footnotesize\ttfamily \#define LC\+\_\+\+MESSAGES~1729}



New locale value, based on the one in libintl.\+h. 

\begin{DoxySince}{Since}
1.\+16 
\end{DoxySince}


\doxysubsubsection{Function Documentation}
\Hypertarget{group__Evil__Locale__Group_ga2ebcd357971e37f9236cb3378e951239}\label{group__Evil__Locale__Group_ga2ebcd357971e37f9236cb3378e951239} 
\index{locale.h functions.@{locale.h functions.}!evil\_setlocale@{evil\_setlocale}}
\index{evil\_setlocale@{evil\_setlocale}!locale.h functions.@{locale.h functions.}}
\doxysubsubsubsection{\texorpdfstring{evil\_setlocale()}{evil\_setlocale()}}
{\footnotesize\ttfamily EVIL\+\_\+\+API char \texorpdfstring{$\ast$}{*} evil\+\_\+setlocale (\begin{DoxyParamCaption}\item[{int}]{category,  }\item[{const char \texorpdfstring{$\ast$}{*}}]{locale }\end{DoxyParamCaption})}



Return the string associated to the given locale and category. 


\begin{DoxyParams}{Parameters}
{\em category} & The category affected by locale. \\
\hline
{\em locale} & The locale specifier. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The string associated to the specified locale and category.
\end{DoxyReturn}
This function returns the string associated to {\ttfamily locale} and {\ttfamily category}. If {\ttfamily category} is LC\+\_\+\+ALL, LC\+\_\+\+COLLATE, LC\+\_\+\+CTYPE, LC\+\_\+\+MONETARY, LC\+\_\+\+NUMERIC or LC\+\_\+\+TIME, it just returns the standard setlocale() function. If {\ttfamily category} is \doxylink{group__Evil__Locale__Group_ga7195d6f0a8d1b9d164a3988a1b8249e8}{LC\+\_\+\+MESSAGES}, then if {\ttfamily locale} is not {\ttfamily NULL}, errno is set to EINVAL and {\ttfamily NULL} is returned, otherwise the string $<$language$>$\+\_\+$<$country$>$ is returned. This string is a static buffer and must not be freed. It will also be rewritten each time {\ttfamily category} is \doxylink{group__Evil__Locale__Group_ga7195d6f0a8d1b9d164a3988a1b8249e8}{LC\+\_\+\+MESSAGES} and {\ttfamily locale} is {\ttfamily NULL}.

Conformity\+: Non applicable.

Supported OS\+: Windows XP.

\begin{DoxySince}{Since}
1.\+16 
\end{DoxySince}


References \mbox{\hyperlink{group__Evil__Locale__Group_ga7195d6f0a8d1b9d164a3988a1b8249e8}{LC\+\_\+\+MESSAGES}}.

