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:
Adrien Destugues 2010-01-08 17:23:49 +00:00
parent 1b1b94b85a
commit 68effbf082
2 changed files with 2 additions and 0 deletions

View File

@ -61,6 +61,7 @@ static int16 kCatArchiveVersion = 1;
void
escapeQuotedChars(BString& stringToEscape)
{
stringToEscape.ReplaceAll("\\","\\\\");
stringToEscape.ReplaceAll("\n","\\n");
stringToEscape.ReplaceAll("\t","\\t");
stringToEscape.ReplaceAll("\"","\\\"");

View File

@ -57,6 +57,7 @@ static int16 kCatArchiveVersion = 1;
void
escapeQuotedChars(BString& stringToEscape)
{
stringToEscape.ReplaceAll("\\","\\\\");
stringToEscape.ReplaceAll("\n","\\n");
stringToEscape.ReplaceAll("\t","\\t");
stringToEscape.ReplaceAll("\"","\\\"");