added some convenience routines into sio

This commit is contained in:
2013-10-20 14:14:10 +00:00
parent abff341236
commit 8b0e522b27
9 changed files with 181 additions and 57 deletions

View File

@ -10,6 +10,7 @@
#include <qse/cmn/path.h>
#include <qse/cmn/opt.h>
#include <qse/cmn/htb.h>
#include <qse/cmn/fmt.h>
#include <signal.h>
#include <locale.h>
@ -1950,7 +1951,9 @@ int qse_main (int argc, qse_achar_t* argv[])
}
else
{
sprintf (locale, ".%u", (unsigned int)codepage);
/* .codepage */
qse_fmtuintmaxtombs (locale, QSE_COUNTOF(locale),
codepage, 10, -1, QSE_MT('\0'), QSE_MT("."));
setlocale (LC_ALL, locale);
qse_setdflcmgrbyid (QSE_CMGR_SLMB);
}