mirror of git://sourceware.org/git/glibc.git
localedef: Support building for older C standards
Fixes commit b15538d77c
("locale: localdef input files are now encoded in UTF-8").
This commit is contained in:
parent
01441ae333
commit
9d77023bf3
|
|
@ -330,15 +330,17 @@ lr_token (struct linereader *lr, const struct charmap_t *charmap,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 0x80 ... 0xff: /* UTF-8 sequence. */
|
case 0x80 ... 0xff: /* UTF-8 sequence. */
|
||||||
uint32_t wch;
|
{
|
||||||
if (!utf8_decode (lr, ch, &wch))
|
uint32_t wch;
|
||||||
{
|
if (!utf8_decode (lr, ch, &wch))
|
||||||
lr->token.tok = tok_error;
|
{
|
||||||
return &lr->token;
|
lr->token.tok = tok_error;
|
||||||
}
|
return &lr->token;
|
||||||
lr->token.tok = tok_ucs4;
|
}
|
||||||
lr->token.val.ucs4 = wch;
|
lr->token.tok = tok_ucs4;
|
||||||
return &lr->token;
|
lr->token.val.ucs4 = wch;
|
||||||
|
return &lr->token;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return get_ident (lr);
|
return get_ident (lr);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue