git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5def5d2
)
Applied Monyo's patch for bug #412 which allows \n characters to
author
Tim Potter
<tpot@samba.org>
Mon, 22 Sep 2003 07:25:19 +0000
(07:25 +0000)
committer
Tim 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
patch
|
blob
|
history
diff --git
a/source3/intl/lang_tdb.c
b/source3/intl/lang_tdb.c
index 2dbb0ba4d8595154d54a8ec8f3da40916155f8f3..420d87ffbb5c035d449dcbcba6db8653c49dcb07 100644
(file)
--- 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;