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
d47e94fb
Commit
d47e94fb
authored
Sep 17, 2003
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preparing to support character set in error messages
parent
894e4340
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
73 additions
and
0 deletions
+73
-0
extra/comp_err.c
extra/comp_err.c
+25
-0
sql/share/czech/errmsg.txt
sql/share/czech/errmsg.txt
+2
-0
sql/share/danish/errmsg.txt
sql/share/danish/errmsg.txt
+2
-0
sql/share/dutch/errmsg.txt
sql/share/dutch/errmsg.txt
+2
-0
sql/share/english/errmsg.txt
sql/share/english/errmsg.txt
+2
-0
sql/share/estonian/errmsg.txt
sql/share/estonian/errmsg.txt
+2
-0
sql/share/french/errmsg.txt
sql/share/french/errmsg.txt
+2
-0
sql/share/german/errmsg.txt
sql/share/german/errmsg.txt
+2
-0
sql/share/greek/errmsg.txt
sql/share/greek/errmsg.txt
+2
-0
sql/share/hungarian/errmsg.txt
sql/share/hungarian/errmsg.txt
+2
-0
sql/share/italian/errmsg.txt
sql/share/italian/errmsg.txt
+2
-0
sql/share/japanese/errmsg.txt
sql/share/japanese/errmsg.txt
+2
-0
sql/share/korean/errmsg.txt
sql/share/korean/errmsg.txt
+2
-0
sql/share/norwegian-ny/errmsg.txt
sql/share/norwegian-ny/errmsg.txt
+2
-0
sql/share/norwegian/errmsg.txt
sql/share/norwegian/errmsg.txt
+2
-0
sql/share/polish/errmsg.txt
sql/share/polish/errmsg.txt
+2
-0
sql/share/portuguese/errmsg.txt
sql/share/portuguese/errmsg.txt
+3
-0
sql/share/romanian/errmsg.txt
sql/share/romanian/errmsg.txt
+2
-0
sql/share/russian/errmsg.txt
sql/share/russian/errmsg.txt
+2
-0
sql/share/serbian/errmsg.txt
sql/share/serbian/errmsg.txt
+2
-0
sql/share/slovak/errmsg.txt
sql/share/slovak/errmsg.txt
+2
-0
sql/share/spanish/errmsg.txt
sql/share/spanish/errmsg.txt
+3
-0
sql/share/swedish/errmsg.txt
sql/share/swedish/errmsg.txt
+2
-0
sql/share/ukrainian/errmsg.txt
sql/share/ukrainian/errmsg.txt
+2
-0
No files found.
extra/comp_err.c
View file @
d47e94fb
...
@@ -24,11 +24,13 @@
...
@@ -24,11 +24,13 @@
#define MAXLENGTH 1000
#define MAXLENGTH 1000
#define MAX_ROWS 1000
#define MAX_ROWS 1000
#define MAX_FILES 10
#define MAX_FILES 10
#define MAX_CHARSET_NAME 64
int
row_count
;
int
row_count
;
uint
file_pos
[
MAX_ROWS
],
file_row_pos
[
MAX_FILES
];
uint
file_pos
[
MAX_ROWS
],
file_row_pos
[
MAX_FILES
];
my_string
saved_row
[
MAX_ROWS
];
my_string
saved_row
[
MAX_ROWS
];
uchar
file_head
[]
=
{
254
,
254
,
2
,
1
};
uchar
file_head
[]
=
{
254
,
254
,
2
,
1
};
char
charset_name
[
MAX_CHARSET_NAME
];
static
void
get_options
(
int
*
argc
,
char
**
argv
[]);
static
void
get_options
(
int
*
argc
,
char
**
argv
[]);
static
int
count_rows
(
FILE
*
from
,
pchar
c
,
pchar
c2
);
static
int
count_rows
(
FILE
*
from
,
pchar
c
,
pchar
c2
);
...
@@ -61,6 +63,13 @@ int main(int argc,char *argv[])
...
@@ -61,6 +63,13 @@ int main(int argc,char *argv[])
}
}
VOID
(
count_rows
(
from
,
'"'
,
'}'
));
/* Calculate start-info */
VOID
(
count_rows
(
from
,
'"'
,
'}'
));
/* Calculate start-info */
if
(
!
charset_name
[
0
])
{
fprintf
(
stderr
,
"Character set is not specified in '%s'
\n
"
,
*
argv
);
fclose
(
from
);
goto
end
;
}
if
(
remember_rows
(
from
,
'}'
)
<
0
)
/* Remember rows */
if
(
remember_rows
(
from
,
'}'
)
<
0
)
/* Remember rows */
{
{
fprintf
(
stderr
,
"Can't find textrows in '%s'
\n
"
,
*
argv
);
fprintf
(
stderr
,
"Can't find textrows in '%s'
\n
"
,
*
argv
);
...
@@ -134,6 +143,11 @@ static void get_options(register int *argc,register char **argv[])
...
@@ -134,6 +143,11 @@ static void get_options(register int *argc,register char **argv[])
case
'V'
:
case
'V'
:
printf
(
"%s (Compile errormessage) Ver 1.3
\n
"
,
progname
);
printf
(
"%s (Compile errormessage) Ver 1.3
\n
"
,
progname
);
break
;
break
;
case
'C'
:
printf
(
"pos=%s
\n
"
,
pos
+
1
);
charsets_dir
=
pos
+
1
;
*
(
pos
--
)
=
'\0'
;
break
;
case
'I'
:
case
'I'
:
case
'?'
:
case
'?'
:
printf
(
" %s (Compile errormessage) Ver 1.3
\n
"
,
progname
);
printf
(
" %s (Compile errormessage) Ver 1.3
\n
"
,
progname
);
...
@@ -168,8 +182,19 @@ static int count_rows(FILE *from, pchar c, pchar c2)
...
@@ -168,8 +182,19 @@ static int count_rows(FILE *from, pchar c, pchar c2)
DBUG_ENTER
(
"count_rows"
);
DBUG_ENTER
(
"count_rows"
);
pos
=
ftell
(
from
);
count
=
0
;
pos
=
ftell
(
from
);
count
=
0
;
charset_name
[
0
]
=
'\0'
;
while
(
fgets
(
rad
,
MAXLENGTH
,
from
)
!=
NULL
)
while
(
fgets
(
rad
,
MAXLENGTH
,
from
)
!=
NULL
)
{
{
if
(
!
strncmp
(
rad
,
"character-set="
,
14
))
{
char
*
b
=
rad
+
14
,
*
e
;
for
(
e
=
b
;
e
[
0
]
&&
e
-
b
<
MAX_CHARSET_NAME
&&
e
[
0
]
!=
' '
&&
e
[
0
]
!=
'\r'
&&
e
[
0
]
!=
'\n'
&&
e
[
0
]
!=
'\t'
;
e
++
);
e
[
0
]
=
'\0'
;
strcpy
(
charset_name
,
b
);
}
if
(
rad
[
0
]
==
c
||
rad
[
0
]
==
c2
)
if
(
rad
[
0
]
==
c
||
rad
[
0
]
==
c2
)
break
;
break
;
count
++
;
count
++
;
...
...
sql/share/czech/errmsg.txt
View file @
d47e94fb
...
@@ -10,6 +10,8 @@
...
@@ -10,6 +10,8 @@
Thu Nov 30 14:02:52 MET 2000 podle 3.23.28
Thu Nov 30 14:02:52 MET 2000 podle 3.23.28
*/
*/
character-set=latin2
"hashchk",
"hashchk",
"isamchk",
"isamchk",
"NE",
"NE",
...
...
sql/share/danish/errmsg.txt
View file @
d47e94fb
...
@@ -4,6 +4,8 @@
...
@@ -4,6 +4,8 @@
/* Knud Riishøjgård knudriis@post.tele.dk 99 &&
/* Knud Riishøjgård knudriis@post.tele.dk 99 &&
Carsten H. Pedersen, carsten.pedersen@bitbybit.dk oct. 1999 / aug. 2001. */
Carsten H. Pedersen, carsten.pedersen@bitbybit.dk oct. 1999 / aug. 2001. */
character-set=latin1
"hashchk",
"hashchk",
"isamchk",
"isamchk",
"NEJ",
"NEJ",
...
...
sql/share/dutch/errmsg.txt
View file @
d47e94fb
...
@@ -12,6 +12,8 @@
...
@@ -12,6 +12,8 @@
Translated new error messages.
Translated new error messages.
*/
*/
character-set=latin1
"hashchk",
"hashchk",
"isamchk",
"isamchk",
"NEE",
"NEE",
...
...
sql/share/english/errmsg.txt
View file @
d47e94fb
/* Copyright Abandoned 1997 TCX DataKonsult AB & Monty Program KB & Detron HB
/* Copyright Abandoned 1997 TCX DataKonsult AB & Monty Program KB & Detron HB
This file is public domain and comes with NO WARRANTY of any kind */
This file is public domain and comes with NO WARRANTY of any kind */
character-set=latin1
"hashchk",
"hashchk",
"isamchk",
"isamchk",
"NO",
"NO",
...
...
sql/share/estonian/errmsg.txt
View file @
d47e94fb
...
@@ -6,6 +6,8 @@
...
@@ -6,6 +6,8 @@
*/
*/
character-set=latin7
"hashchk",
"hashchk",
"isamchk",
"isamchk",
"EI",
"EI",
...
...
sql/share/french/errmsg.txt
View file @
d47e94fb
/* Copyright Abandoned 1997 TCX DataKonsult AB & Monty Program KB & Detron HB
/* Copyright Abandoned 1997 TCX DataKonsult AB & Monty Program KB & Detron HB
This file is public domain and comes with NO WARRANTY of any kind */
This file is public domain and comes with NO WARRANTY of any kind */
character-set=latin1
"hashchk",
"hashchk",
"isamchk",
"isamchk",
"NON",
"NON",
...
...
sql/share/german/errmsg.txt
View file @
d47e94fb
...
@@ -10,6 +10,8 @@
...
@@ -10,6 +10,8 @@
2002-12-11
2002-12-11
*/
*/
character-set=latin1
"hashchk",
"hashchk",
"isamchk",
"isamchk",
"Nein",
"Nein",
...
...
sql/share/greek/errmsg.txt
View file @
d47e94fb
/* Copyright Abandoned 1997 TCX DataKonsult AB & Monty Program KB & Detron HB
/* Copyright Abandoned 1997 TCX DataKonsult AB & Monty Program KB & Detron HB
This file is public domain and comes with NO WARRANTY of any kind */
This file is public domain and comes with NO WARRANTY of any kind */
character-set=greek
"hashchk",
"hashchk",
"isamchk",
"isamchk",
"",
"",
...
...
sql/share/hungarian/errmsg.txt
View file @
d47e94fb
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
Updated May, 2000
Updated May, 2000
This file is public domain and comes with NO WARRANTY of any kind */
This file is public domain and comes with NO WARRANTY of any kind */
character-set=latin2
"hashchk",
"hashchk",
"isamchk",
"isamchk",
"NEM",
"NEM",
...
...
sql/share/italian/errmsg.txt
View file @
d47e94fb
/* Copyright Abandoned 1997 TCX DataKonsult AB & Monty Program KB & Detron HB
/* Copyright Abandoned 1997 TCX DataKonsult AB & Monty Program KB & Detron HB
This file is public domain and comes with NO WARRANTY of any kind */
This file is public domain and comes with NO WARRANTY of any kind */
character-set=latin1
"hashchk",
"hashchk",
"isamchk",
"isamchk",
"NO",
"NO",
...
...
sql/share/japanese/errmsg.txt
View file @
d47e94fb
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
3.22.10-beta euc-japanese (ujis) text
3.22.10-beta euc-japanese (ujis) text
*/
*/
character-set=ujis
"hashchk",
"hashchk",
"isamchk",
"isamchk",
"NO",
"NO",
...
...
sql/share/korean/errmsg.txt
View file @
d47e94fb
/* Copyright Abandoned 1997 TCX DataKonsult AB & Monty Program KB & Detron HB
/* Copyright Abandoned 1997 TCX DataKonsult AB & Monty Program KB & Detron HB
This 화일 is public domain and comes with NO WARRANTY of any kind */
This 화일 is public domain and comes with NO WARRANTY of any kind */
character-set=euckr
"hashchk",
"hashchk",
"isamchk",
"isamchk",
"아니오",
"아니오",
...
...
sql/share/norwegian-ny/errmsg.txt
View file @
d47e94fb
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
/* Roy-Magne Mo rmo@www.hivolda.no 97 */
/* Roy-Magne Mo rmo@www.hivolda.no 97 */
character-set=latin1
"hashchk",
"hashchk",
"isamchk",
"isamchk",
"NEI",
"NEI",
...
...
sql/share/norwegian/errmsg.txt
View file @
d47e94fb
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
/* Roy-Magne Mo rmo@www.hivolda.no 97 */
/* Roy-Magne Mo rmo@www.hivolda.no 97 */
character-set=latin1
"hashchk",
"hashchk",
"isamchk",
"isamchk",
"NEI",
"NEI",
...
...
sql/share/polish/errmsg.txt
View file @
d47e94fb
...
@@ -5,6 +5,8 @@
...
@@ -5,6 +5,8 @@
Charset ISO-8859-2
Charset ISO-8859-2
*/
*/
character-set=latin2
"hashchk",
"hashchk",
"isamchk",
"isamchk",
"NIE",
"NIE",
...
...
sql/share/portuguese/errmsg.txt
View file @
d47e94fb
/* Copyright Abandoned 1997 TCX DataKonsult AB & Monty Program KB & Detron HB
/* Copyright Abandoned 1997 TCX DataKonsult AB & Monty Program KB & Detron HB
This file is public domain and comes with NO WARRANTY of any kind */
This file is public domain and comes with NO WARRANTY of any kind */
/* Updated by Thiago Delgado Pinto - thiagodp@ieg.com.br - 06.07.2002 */
/* Updated by Thiago Delgado Pinto - thiagodp@ieg.com.br - 06.07.2002 */
character-set=latin1
"hashchk",
"hashchk",
"isamchk",
"isamchk",
"NÃO",
"NÃO",
...
...
sql/share/romanian/errmsg.txt
View file @
d47e94fb
...
@@ -5,6 +5,8 @@
...
@@ -5,6 +5,8 @@
e-mail: tzoompy@cs.washington.edu
e-mail: tzoompy@cs.washington.edu
*/
*/
character-set=latin2
"hashchk",
"hashchk",
"isamchk",
"isamchk",
"NU",
"NU",
...
...
sql/share/russian/errmsg.txt
View file @
d47e94fb
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
This file is public domain and comes with NO WARRANTY of any kind */
This file is public domain and comes with NO WARRANTY of any kind */
/* charset: KOI8-R */
/* charset: KOI8-R */
character-set=koi8r
"hashchk",
"hashchk",
"isamchk",
"isamchk",
"",
"",
...
...
sql/share/serbian/errmsg.txt
View file @
d47e94fb
...
@@ -7,6 +7,8 @@
...
@@ -7,6 +7,8 @@
Charset: cp1250
Charset: cp1250
*/
*/
character-set=cp1250
"hashchk",
"hashchk",
"isamchk",
"isamchk",
"NE",
"NE",
...
...
sql/share/slovak/errmsg.txt
View file @
d47e94fb
...
@@ -9,6 +9,8 @@
...
@@ -9,6 +9,8 @@
Date: Streda 11. November 1998 20:58:15
Date: Streda 11. November 1998 20:58:15
*/
*/
character-set=latin2
"hashchk",
"hashchk",
"isamchk",
"isamchk",
"NIE",
"NIE",
...
...
sql/share/spanish/errmsg.txt
View file @
d47e94fb
...
@@ -2,6 +2,9 @@
...
@@ -2,6 +2,9 @@
This file is public domain and comes with NO WARRANTY of any kind
This file is public domain and comes with NO WARRANTY of any kind
Traduccion por Miguel Angel Fernandez Roiz -- LoboCom Sistemas, s.l.
Traduccion por Miguel Angel Fernandez Roiz -- LoboCom Sistemas, s.l.
From June 28, 2001 translated by Miguel Solorzano miguel@mysql.com */
From June 28, 2001 translated by Miguel Solorzano miguel@mysql.com */
character-set=latin1
"hashchk",
"hashchk",
"isamchk",
"isamchk",
"NO",
"NO",
...
...
sql/share/swedish/errmsg.txt
View file @
d47e94fb
/* Copyright Abandoned 1997 TCX DataKonsult AB & Monty Program KB & Detron HB
/* Copyright Abandoned 1997 TCX DataKonsult AB & Monty Program KB & Detron HB
This file is public domain and comes with NO WARRANTY of any kind */
This file is public domain and comes with NO WARRANTY of any kind */
character-set=latin1
"hashchk",
"hashchk",
"isamchk",
"isamchk",
"NO",
"NO",
...
...
sql/share/ukrainian/errmsg.txt
View file @
d47e94fb
...
@@ -6,6 +6,8 @@
...
@@ -6,6 +6,8 @@
* Version: 13/09/2001 mysql-3.23.41
* Version: 13/09/2001 mysql-3.23.41
*/
*/
character-set=koi8u
"hashchk",
"hashchk",
"isamchk",
"isamchk",
"",
"",
...
...
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