Applied Monyo's patch for bug #412 which allows \n characters to
authorTim Potter <tpot@samba.org>
Mon, 22 Sep 2003 07:25:19 +0000 (07:25 +0000)
committerTim Potter <tpot@samba.org>
Mon, 22 Sep 2003 07:25:19 +0000 (07:25 +0000)
appear in msg strings.
(This used to be commit 53a2a389902b6ffa37dd61f0c0a496744fc2e2b3)

source3/intl/lang_tdb.c

index 2dbb0ba4d8595154d54a8ec8f3da40916155f8f3..420d87ffbb5c035d449dcbcba6db8653c49dcb07 100644 (file)
@@ -58,6 +58,8 @@ static BOOL load_msg(const char *msg_file)
                        if (*msgstr == 0) {
                                msgstr = msgid;
                        }
+                       all_string_sub(msgid, "\\n", "\n", 0);
+                       all_string_sub(msgstr, "\\n", "\n", 0);
                        key.dptr = msgid;
                        key.dsize = strlen(msgid)+1;
                        data.dptr = msgstr;