1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-31 18:10:56 +01:00

23118: improve sorting to make it work with locales

This commit is contained in:
Peter Stephenson 2007-01-21 22:47:36 +00:00
parent f3bf48149a
commit 553e011320
15 changed files with 497 additions and 221 deletions

View file

@ -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)