mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-01 04:12:51 +00:00
If conversion from UTF8 fails, don't mark Unicode text as available.
Submitted by: Michihiro NAKAJIMA MFC after: 30 days
This commit is contained in:
parent
bb3f721b2b
commit
929b60ba42
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=186422
@ -239,7 +239,8 @@ aes_get_wcs(struct aes *aes)
|
||||
if (aes->aes_set & AES_SET_UTF8) {
|
||||
/* Try converting UTF8 to WCS. */
|
||||
aes->aes_wcs = __archive_string_utf8_w(&(aes->aes_utf8));
|
||||
aes->aes_set |= AES_SET_WCS;
|
||||
if (aes->aes_wcs != NULL)
|
||||
aes->aes_set |= AES_SET_WCS;
|
||||
return (aes->aes_wcs);
|
||||
}
|
||||
return (NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user