Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Source: Stabilize include order | Brad King | 2016-04-29 | 1 | -0/+2 |
| | | | | | Each source file has a logical first include file. Include it in an isolated block so that tools that sort includes do not move them. | ||||
* | Add setlocale() calls around use of libarchive APIs (#14934, #15377) | Brad King | 2015-02-06 | 1 | -0/+31 |
The libarchive APIs use nl_langinfo(CODESET) for iconv so they need the locale to be set for LC_CTYPE. However, the rest of CMake does not define any behavior for non-ASCII character classification/conversion so we do not want to setlocale() globally. Add a RAII class to save, set, and restore the locale around calls to libarchive APIs. Inspired-by: Clinton Stimpson <clinton@elemtech.com> |