VirtualBox

忽略:
時間撮記:
2011-9-5 下午02:02:29 (13 年 以前)
作者:
vboxsync
訊息:

iprt: Change the console CP to CP_ACP if initializing from an executable. (untested)

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Runtime/r3/init.cpp

    r38636 r38638  
    3434#ifdef RT_OS_WINDOWS
    3535# include <process.h>
     36# include <Windows.h>
    3637#else
    3738# include <unistd.h>
     
    317318    setlocale(LC_CTYPE, "");
    318319
     320#ifdef RT_OS_WINDOWS
     321    /*
     322     * On windows, make sure we talk CP_ACP to the console. It frequently uses
     323     * a different code page, which would cause %[lL]S to fail.
     324     */
     325    if (!(fFlags & RTR3INIT_FLAGS_DLL))
     326    {
     327        SetConsoleCP(GetACP());
     328        SetConsoleOutputCP(GetACP());
     329    }
     330#endif
     331
    319332    /*
    320333     * The Process ID.
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette