Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-4118

Merge Unicode command line client from 5.6

Details

    Description

      MySQL 5.6 implemented Unicode support in command line client (mysql.exe).

      Earlier mysql.exe versions support only OEM (DOS) locale character set
      (e.g. cp850 on a Western machine), which is old fashioned:
      it does not support neither Euro sign nor modern punctuation characters.

      This feature needs to be merged from MySQL.

      Attachments

        Issue Links

          Activity

            Isn't the mysql.exe the same? I thought it starts a cmd.exe with unicode support and then calls mysql.exe with default-character-set=utf8 (or mysql.exe detects the unicode support of the cmd.exe and switches automatically).

            Please try to use utf8mb4 instead of utf8 when implementing this feature.

            There could be more things needed for Unicode support on Windows. With powershell this won't work:
            mysqldump.exe -A > dump.sql
            mysql.exe < dump.sql
            This is because the stream will be converted to utf16 by powershell and mysql.exe can't handle utf16....
            https://bugs.mysql.com/bug.php?id=73481
            https://bugs.mysql.com/bug.php?id=73672

            dveeden Daniël van Eeden added a comment - Isn't the mysql.exe the same? I thought it starts a cmd.exe with unicode support and then calls mysql.exe with default-character-set=utf8 (or mysql.exe detects the unicode support of the cmd.exe and switches automatically). Please try to use utf8mb4 instead of utf8 when implementing this feature. There could be more things needed for Unicode support on Windows. With powershell this won't work: mysqldump.exe -A > dump.sql mysql.exe < dump.sql This is because the stream will be converted to utf16 by powershell and mysql.exe can't handle utf16.... https://bugs.mysql.com/bug.php?id=73481 https://bugs.mysql.com/bug.php?id=73672
            wlad Vladislav Vaintroub added a comment - - edited

            Already solved in MDEV-26713 .

            dveeden, there are various workarounds for powershell to reading the raw input/output redirections, by favorite being prepending command line with "cmd /c "

            wlad Vladislav Vaintroub added a comment - - edited Already solved in MDEV-26713 . dveeden , there are various workarounds for powershell to reading the raw input/output redirections, by favorite being prepending command line with "cmd /c "

            People

              Unassigned Unassigned
              bar Alexander Barkov
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.