summaryrefslogtreecommitdiff
path: root/source3/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
commit109d5b46220e6a2b93433b162c5de5ae10441113 (patch)
tree17821602efe64ef408a451f22824eb4809ed2592 /source3/intl
parent5def5d2bdb2fdf98a6d518f5f0d00d9955f69890 (diff)
downloadsamba-109d5b46220e6a2b93433b162c5de5ae10441113.tar.gz
samba-109d5b46220e6a2b93433b162c5de5ae10441113.tar.bz2
samba-109d5b46220e6a2b93433b162c5de5ae10441113.zip
Applied Monyo's patch for bug #412 which allows \n characters to
appear in msg strings. (This used to be commit 53a2a389902b6ffa37dd61f0c0a496744fc2e2b3)
Diffstat (limited to 'source3/intl')
-rw-r--r--source3/intl/lang_tdb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/intl/lang_tdb.c b/source3/intl/lang_tdb.c
index 2dbb0ba4d8..420d87ffbb 100644
--- a/source3/intl/lang_tdb.c
+++ b/source3/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;