/*
- * The command line arguments in UCS2
+ * The command line arguments in UTF-16
*/
static int nArgsW = 0;
static LPWSTR *ArglistW = NULL;
{
int len;
- // Convert each Unicode argument to the current codepage.
- WideCharToMultiByte_alloc(GetACP(), 0,
+ // Convert each Unicode argument to UTF-8.
+ WideCharToMultiByte_alloc(CP_UTF8, 0,
ArglistW[i], (int)wcslen(ArglistW[i]) + 1,
(LPSTR *)&argv[i], &len, 0, 0);
if (argv[i] == NULL)
/*
* Fix the encoding of the command line arguments. Invoked when 'encoding'
- * has been changed while starting up. Use the UCS-2 command line arguments
+ * has been changed while starting up. Use the UTF-16 command line arguments
* and convert them to 'encoding'.
*/
void