Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-11909

[FIX][locale] Character encoding of console applications (cacls and shutdown)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: 0.4.3
    • Component/s: None

      Description

      BRIEF: There are encoding errors In listed applications. It is related to Windows OEM Codepage which differs from GUI codepage (i.e. OEM Russian Charset is 866, but GUI charset is 1251).
      This patch add setlocale(LC_CTYPE, "") call which fix it (on MSVS builds).

      I also tried Windows API calls as SetConsoleOutputCP(), SetConsoleCP, GetACP(), but the _tprintf() routine used for printing internally converts string parameters to the default "C" locale. (If only it was WriteConsole() call, then these functions works correctly.)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hbelusca hbelusca
                Reporter:
                leha-bot leha-bot
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: