mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
(process_block): Don't print message about invliad input if the -c option is used.
This commit is contained in:
parent
efedd9cf71
commit
b87507117c
@ -160,14 +160,16 @@ main (int argc, char *argv[])
|
||||
if (*errhand == '/')
|
||||
{
|
||||
--nslash;
|
||||
++errhand;
|
||||
errhand = strchr (errhand, '\0');
|
||||
}
|
||||
}
|
||||
|
||||
newp = (char *) alloca (errhand - to_code + nslash + 6 + 1);
|
||||
newp = (char *) alloca (errhand - to_code + nslash + 7 + 1);
|
||||
cp = mempcpy (newp, to_code, errhand - to_code);
|
||||
while (nslash-- > 0)
|
||||
*cp++ = '/';
|
||||
if (cp[-1] != '/')
|
||||
*cp++ = ',';
|
||||
memcpy (cp, "IGNORE", sizeof ("IGNORE"));
|
||||
|
||||
to_code = newp;
|
||||
@ -496,8 +498,9 @@ conversion stopped due to problem in writing the output"));
|
||||
switch (errno)
|
||||
{
|
||||
case EILSEQ:
|
||||
if (! omit_invalid)
|
||||
error (0, 0, _("illegal input sequence at position %ld"),
|
||||
(long) (addr - start));
|
||||
(long int) (addr - start));
|
||||
break;
|
||||
case EINVAL:
|
||||
error (0, 0, _("\
|
||||
|
1071
locale/C-translit.h
1071
locale/C-translit.h
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user