1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-14 21:47:19 +02:00

Minor bug fixes.

Enhanced function docs.
This commit is contained in:
Werner Koch 2009-07-07 16:51:33 +00:00
parent e1f6e32da0
commit 44add1c310
6 changed files with 46 additions and 19 deletions

View file

@ -314,7 +314,8 @@ is_native_utf8 (void)
/* Convert string, which is in native encoding to UTF8 and return a
new allocated UTF-8 string. */
new allocated UTF-8 string. This function terminates the process
on memory shortage. */
char *
native_to_utf8 (const char *orig_string)
{
@ -682,7 +683,8 @@ do_utf8_to_native (const char *string, size_t length, int delim,
illegal encodings by some "\xnn" and quote all control
characters. A character with value DELIM will always be quoted, it
must be a vanilla ASCII character. A DELIM value of -1 is special:
it disables all quoting of control characters. */
it disables all quoting of control characters. This function
terminates the process on memory shortage. */
char *
utf8_to_native (const char *string, size_t length, int delim)
{