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