Diskprobe :
in is_valid_utf8() : * Accept EOL/LF as part of a valid UTF8 string. * This allow a string containing it to be copied to the clipboard. * Fixing ticket #1453. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34192 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
59d398a1ae
commit
7c47a09644
@ -45,7 +45,7 @@ is_valid_utf8(uint8 *data, size_t size)
|
||||
|
||||
if ((data[i] & 0x80) == 0) {
|
||||
// a single byte character
|
||||
if (data[i] < ' ' || data[i] == 0x7f)
|
||||
if (data[i] < ' ' && data[i] != 0x0a || data[i] == 0x7f)
|
||||
return false;
|
||||
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user