mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 06:30:14 +08:00
Win32: use the ISO C and C++ conformant name "_putenv" instead of deprecated "putenv"
This commit is contained in:
parent
a0564fd4ec
commit
abe40f17c9
@ -152,8 +152,8 @@ void PangoFontInfo::HardInitFontConfig(const std::string& fonts_dir,
|
||||
#ifdef _WIN32
|
||||
std::string env("FONTCONFIG_PATH=");
|
||||
env.append(cache_dir_.c_str());
|
||||
putenv(env.c_str());
|
||||
putenv("LANG=en_US.utf8");
|
||||
_putenv(env.c_str());
|
||||
_putenv("LANG=en_US.utf8");
|
||||
#else
|
||||
setenv("FONTCONFIG_PATH", cache_dir_.c_str(), true);
|
||||
// Fix the locale so that the reported font names are consistent.
|
||||
|
Loading…
Reference in New Issue
Block a user