summaryrefslogtreecommitdiffstats
path: root/jnlib/utf8conv.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2009-07-07 18:51:33 +0200
committerWerner Koch <wk@gnupg.org>2009-07-07 18:51:33 +0200
commit44add1c310cd4a8523a11fdc481c8b1b39344ef3 (patch)
tree96b41e30e843ecc7a939b1fadeeaff06d0654fb0 /jnlib/utf8conv.c
parentRelease session_env. (diff)
downloadgnupg2-44add1c310cd4a8523a11fdc481c8b1b39344ef3.tar.xz
gnupg2-44add1c310cd4a8523a11fdc481c8b1b39344ef3.zip
Minor bug fixes.
Enhanced function docs.
Diffstat (limited to '')
-rw-r--r--jnlib/utf8conv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/jnlib/utf8conv.c b/jnlib/utf8conv.c
index 5223d473b..fee4dc6a5 100644
--- a/jnlib/utf8conv.c
+++ b/jnlib/utf8conv.c
@@ -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)
{