OSDN Git Service
(root)
/
mingw
/
mingw-org-wsl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Adjust repository version following WSL-5.2.2 release.
[mingw/mingw-org-wsl.git]
/
mingwrt
/
mingwex
/
mb_wc_common.h
1
#include <locale.h>
2
#include <string.h>
3
#include <stdlib.h>
4
5
static inline
6
unsigned int get_codepage (void)
7
{
8
/* locale :: "lang[_country[.code_page]]" | ".code_page" */
9
char * cp_string;
10
if ((cp_string = strchr (setlocale(LC_CTYPE, NULL), '.')))
11
return ((unsigned) atoi (cp_string + 1));
12
return 0;
13
}