summaryrefslogtreecommitdiff
path: root/glib/gconvertprivate.h
Commit message (Collapse)AuthorAgeFilesLines
* glib: Add SPDX license headers automaticallyPhilip Withnall2022-05-181-0/+2
| | | | | | | | | | | | | | Add SPDX license (but not copyright) headers to all files which follow a certain pattern in their existing non-machine-readable header comment. This commit was entirely generated using the command: ``` git ls-files glib/*.[ch] | xargs perl -0777 -pi -e 's/\n \*\n \* This library is free software; you can redistribute it and\/or\n \* modify it under the terms of the GNU Lesser General Public/\n \*\n \* SPDX-License-Identifier: LGPL-2.1-or-later\n \*\n \* This library is free software; you can redistribute it and\/or\n \* modify it under the terms of the GNU Lesser General Public/igs' ``` Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #1415
* Add private functions to correctly convert datetime when LC_TIME is not UTF8Frederic Martinsons2021-03-271-0/+40
Functions (_g_get_time_charset and _g_get_ctype_charset) to get LC_TIME and LC_CTYPE charset by using nl_langinfo with _NL_TIME_CODESET and CODESET). Another functions (_g_locale_time_to_utf8 and _g_locale_ctype_to_utf8) which uses thel and format the input string accordingly. Add new test cases with mixing UTF8 and non UTF8 LC_TIME along with UTF8 and non UTF8 LC_MESSAGES. Closed #2055 Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com>