summaryrefslogtreecommitdiffstats
path: root/source/intl
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-09-22 07:25:19 +0000
committerTim Potter <tpot@samba.org>2003-09-22 07:25:19 +0000
commit53a2a389902b6ffa37dd61f0c0a496744fc2e2b3 (patch)
treeda1ae67192e9e58a68f4e4542f937083ab372d24 /source/intl
parent37db75fc95aec2510a0ead0c97f44e80b00696d9 (diff)
downloadsamba-53a2a389902b6ffa37dd61f0c0a496744fc2e2b3.tar.gz
samba-53a2a389902b6ffa37dd61f0c0a496744fc2e2b3.tar.xz
samba-53a2a389902b6ffa37dd61f0c0a496744fc2e2b3.zip
Applied Monyo's patch for bug #412 which allows \n characters to
appear in msg strings.
Diffstat (limited to 'source/intl')
-rw-r--r--source/intl/lang_tdb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/intl/lang_tdb.c b/source/intl/lang_tdb.c
index 2dbb0ba4d85..420d87ffbb5 100644
--- a/source/intl/lang_tdb.c
+++ b/source/intl/lang_tdb.c
@@ -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;