From 553e011320798af097e8de95a1e2a1d2ed6a1a3e Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 21 Jan 2007 22:47:36 +0000 Subject: 23118: improve sorting to make it work with locales --- Src/utils.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Src/utils.c') diff --git a/Src/utils.c b/Src/utils.c index 6faf196a9..4aa5b0799 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -3625,6 +3625,17 @@ metafy(char *buf, int len, int heap) return buf; } + +/* + * Take a null-terminated, metafied string in s into a literal + * representation by converting in place. The length is in *len + * len is non-NULL; if len is NULL, you don't know the length of + * the final string, but if it's to be supplied to some system + * routine that always uses NULL termination, such as a filename + * interpreter, that doesn't matter. Note the NULL termination + * is always copied for purposes of that kind. + */ + /**/ mod_export char * unmetafy(char *s, int *len) -- cgit 1.4.1