Fixed a bug in the plaintext catalog add on : in some cases the resulting catalog file was corrupt (checksum error).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34951 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -61,6 +61,7 @@ static int16 kCatArchiveVersion = 1;
|
||||
void
|
||||
escapeQuotedChars(BString& stringToEscape)
|
||||
{
|
||||
stringToEscape.ReplaceAll("\\","\\\\");
|
||||
stringToEscape.ReplaceAll("\n","\\n");
|
||||
stringToEscape.ReplaceAll("\t","\\t");
|
||||
stringToEscape.ReplaceAll("\"","\\\"");
|
||||
|
||||
@@ -57,6 +57,7 @@ static int16 kCatArchiveVersion = 1;
|
||||
void
|
||||
escapeQuotedChars(BString& stringToEscape)
|
||||
{
|
||||
stringToEscape.ReplaceAll("\\","\\\\");
|
||||
stringToEscape.ReplaceAll("\n","\\n");
|
||||
stringToEscape.ReplaceAll("\t","\\t");
|
||||
stringToEscape.ReplaceAll("\"","\\\"");
|
||||
|
||||
Reference in New Issue
Block a user