Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lc_messages doesn't support another languages other than en_US #33707

Closed
Alkaagr81 opened this issue Apr 4, 2022 · 1 comment · Fixed by #33708
Closed

lc_messages doesn't support another languages other than en_US #33707

Alkaagr81 opened this issue Apr 4, 2022 · 1 comment · Fixed by #33708
Assignees
Labels
severity/minor sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@Alkaagr81
Copy link
Collaborator

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

<!-- In mysql messages comes in RUSSIAN language but in TIDB it comes in English only . We can make this setting read only  -->
SET lc_messages=ru_RU;

SHOW VARIABLES LIKE 'lc_messages';
SET lc_messages=message;

2. What did you expect to see? (Required)

mysql> SET lc_messages=ru_RU;
Query OK, 0 rows affected (0.00 sec)

mysql> 
mysql> SHOW VARIABLES LIKE 'lc_messages';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| lc_messages   | ru_RU |
+---------------+-------+
1 row in set (0.09 sec)

mysql> SET lc_messages=message;
ERROR 1649 (HY000): Unknown locale: 'message'

3. What did you see instead (Required)

mysql> SET lc_messages=ru_RU;
Query OK, 0 rows affected (0.00 sec)

mysql> 
mysql> SHOW VARIABLES LIKE 'lc_messages';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| lc_messages   | ru_RU |
+---------------+-------+
1 row in set (0.02 sec)

mysql> SET lc_messages=message;
Query OK, 0 rows affected (0.00 sec)

4. What is your TiDB version? (Required)

| Release Version: v5.4.0
Edition: Community
Git Commit Hash: 55f3b24c1c9f506bd652ef1d162283541e428872
Git Branch: heads/refs/tags/v5.4.0
UTC Build Time: 2022-01-25 08:41:05
GoVersion: go1.16.4
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false |
@Alkaagr81 Alkaagr81 added the type/bug The issue is confirmed as a bug. label Apr 4, 2022
@fanrenhoo
Copy link
Contributor

/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/minor sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants