Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
d850a57c
Commit
d850a57c
authored
Oct 19, 2009
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#46633 Obsolete Serbian locale name
- Renaming sr_YU to sr_RS - Adding test case
parent
de7d1abe
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
27 deletions
+46
-27
mysql-test/r/locale.result
mysql-test/r/locale.result
+10
-0
mysql-test/t/locale.test
mysql-test/t/locale.test
+9
-0
sql/sql_locale.cc
sql/sql_locale.cc
+27
-27
No files found.
mysql-test/r/locale.result
View file @
d850a57c
...
...
@@ -46,4 +46,14 @@ SELECT format(123456.789, 3, 'el_GR');
format(123456.789, 3, 'el_GR')
123456.789
DROP TABLE t1;
#
# Bug#46633 Obsolete Serbian locale name
#
set lc_messages=sr_YU;
ERROR HY000: Unknown locale: 'sr_YU'
set lc_messages=sr_RS;
set lc_time_names=sr_RS;
select format(123456.789, 3, 'sr_RS');
format(123456.789, 3, 'sr_RS')
123456.789
End of 5.4 tests
mysql-test/t/locale.test
View file @
d850a57c
...
...
@@ -31,4 +31,13 @@ SELECT a, date_format(a,'%b') as abmon, monthname(a) as mon FROM t1 ORDER BY a;
SELECT
format
(
123456.789
,
3
,
'el_GR'
);
DROP
TABLE
t1
;
--
echo
#
--
echo
# Bug#46633 Obsolete Serbian locale name
--
echo
#
--
error
ER_UNKNOWN_LOCALE
set
lc_messages
=
sr_YU
;
set
lc_messages
=
sr_RS
;
set
lc_time_names
=
sr_RS
;
select
format
(
123456.789
,
3
,
'sr_RS'
);
--
echo
End
of
5.4
tests
sql/sql_locale.cc
View file @
d850a57c
...
...
@@ -26,7 +26,7 @@
enum
err_msgs_index
{
en_US
=
0
,
cs_CZ
,
da_DK
,
nl_NL
,
et_EE
,
fr_FR
,
de_DE
,
el_GR
,
hu_HU
,
it_IT
,
ja_JP
,
ko_KR
,
no_NO
,
nn_NO
,
pl_PL
,
pt_PT
,
ro_RO
,
ru_RU
,
sr_
C
S
,
sk_SK
,
ja_JP
,
ko_KR
,
no_NO
,
nn_NO
,
pl_PL
,
pt_PT
,
ro_RO
,
ru_RU
,
sr_
R
S
,
sk_SK
,
es_ES
,
sv_SE
,
uk_UA
}
ERR_MSGS_INDEX
;
...
...
@@ -1716,41 +1716,41 @@ MY_LOCALE my_locale_sq_AL
);
/***** LOCALE END sq_AL *****/
/***** LOCALE BEGIN sr_
YU: Servian - Yugoslav
ia *****/
static
const
char
*
my_locale_month_names_sr_
YU
[
13
]
=
/***** LOCALE BEGIN sr_
RS: Serbian - Serb
ia *****/
static
const
char
*
my_locale_month_names_sr_
RS
[
13
]
=
{
"januar"
,
"februar"
,
"mart"
,
"april"
,
"maj"
,
"juni"
,
"juli"
,
"avgust"
,
"septembar"
,
"oktobar"
,
"novembar"
,
"decembar"
,
NullS
};
static
const
char
*
my_locale_ab_month_names_sr_
YU
[
13
]
=
static
const
char
*
my_locale_ab_month_names_sr_
RS
[
13
]
=
{
"jan"
,
"feb"
,
"mar"
,
"apr"
,
"maj"
,
"jun"
,
"jul"
,
"avg"
,
"sep"
,
"okt"
,
"nov"
,
"dec"
,
NullS
};
static
const
char
*
my_locale_day_names_sr_
YU
[
8
]
=
static
const
char
*
my_locale_day_names_sr_
RS
[
8
]
=
{
"ponedeljak"
,
"utorak"
,
"sreda"
,
"četvrtak"
,
"petak"
,
"subota"
,
"nedelja"
,
NullS
};
static
const
char
*
my_locale_ab_day_names_sr_
YU
[
8
]
=
static
const
char
*
my_locale_ab_day_names_sr_
RS
[
8
]
=
{
"pon"
,
"uto"
,
"sre"
,
"čet"
,
"pet"
,
"sub"
,
"ned"
,
NullS
};
static
TYPELIB
my_locale_typelib_month_names_sr_
YU
=
{
array_elements
(
my_locale_month_names_sr_
YU
)
-
1
,
""
,
my_locale_month_names_sr_YU
,
NULL
};
static
TYPELIB
my_locale_typelib_ab_month_names_sr_
YU
=
{
array_elements
(
my_locale_ab_month_names_sr_
YU
)
-
1
,
""
,
my_locale_ab_month_names_sr_YU
,
NULL
};
static
TYPELIB
my_locale_typelib_day_names_sr_
YU
=
{
array_elements
(
my_locale_day_names_sr_
YU
)
-
1
,
""
,
my_locale_day_names_sr_YU
,
NULL
};
static
TYPELIB
my_locale_typelib_ab_day_names_sr_
YU
=
{
array_elements
(
my_locale_ab_day_names_sr_
YU
)
-
1
,
""
,
my_locale_ab_day_names_sr_YU
,
NULL
};
MY_LOCALE
my_locale_sr_
YU
static
TYPELIB
my_locale_typelib_month_names_sr_
RS
=
{
array_elements
(
my_locale_month_names_sr_
RS
)
-
1
,
""
,
my_locale_month_names_sr_RS
,
NULL
};
static
TYPELIB
my_locale_typelib_ab_month_names_sr_
RS
=
{
array_elements
(
my_locale_ab_month_names_sr_
RS
)
-
1
,
""
,
my_locale_ab_month_names_sr_RS
,
NULL
};
static
TYPELIB
my_locale_typelib_day_names_sr_
RS
=
{
array_elements
(
my_locale_day_names_sr_
RS
)
-
1
,
""
,
my_locale_day_names_sr_RS
,
NULL
};
static
TYPELIB
my_locale_typelib_ab_day_names_sr_
RS
=
{
array_elements
(
my_locale_ab_day_names_sr_
RS
)
-
1
,
""
,
my_locale_ab_day_names_sr_RS
,
NULL
};
MY_LOCALE
my_locale_sr_
RS
(
48
,
"sr_
YU
"
,
"Ser
vian - Yugoslav
ia"
,
"sr_
RS
"
,
"Ser
bian - Serb
ia"
,
FALSE
,
&
my_locale_typelib_month_names_sr_
YU
,
&
my_locale_typelib_ab_month_names_sr_
YU
,
&
my_locale_typelib_day_names_sr_
YU
,
&
my_locale_typelib_ab_day_names_sr_
YU
,
&
my_locale_typelib_month_names_sr_
RS
,
&
my_locale_typelib_ab_month_names_sr_
RS
,
&
my_locale_typelib_day_names_sr_
RS
,
&
my_locale_typelib_ab_day_names_sr_
RS
,
9
,
10
,
'.'
,
/* decimal point sr_
YU
*/
'\0'
,
/* thousands_sep sr_
YU
*/
"
\x80
"
,
/* grouping sr_
YU
*/
&
global_errmsgs
[
sr_
C
S
]
'.'
,
/* decimal point sr_
RS
*/
'\0'
,
/* thousands_sep sr_
RS
*/
"
\x80
"
,
/* grouping sr_
RS
*/
&
global_errmsgs
[
sr_
R
S
]
);
/***** LOCALE END sr_
YU
*****/
/***** LOCALE END sr_
RS
*****/
/***** LOCALE BEGIN sv_SE: Swedish - Sweden *****/
static
const
char
*
my_locale_month_names_sv_SE
[
13
]
=
...
...
@@ -3281,7 +3281,7 @@ MY_LOCALE *my_locales[]=
&
my_locale_sk_SK
,
&
my_locale_sl_SI
,
&
my_locale_sq_AL
,
&
my_locale_sr_
YU
,
&
my_locale_sr_
RS
,
&
my_locale_ta_IN
,
&
my_locale_te_IN
,
&
my_locale_th_TH
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment