aboutsummaryrefslogtreecommitdiffstats
path: root/epan/charsets.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-06-16 11:40:22 -0700
committerGuy Harris <guy@alum.mit.edu>2017-06-16 18:41:00 +0000
commit435c68cd2b856a6be7d015e8703c6c83d9b8eb89 (patch)
treeed43830c1c74dbc6aeca9f6bfd357dffaee7c2f9 /epan/charsets.c
parenta0dfbccdfca79da5ed9bc250d18bceedd3598276 (diff)
Fix SURROGATE_VALUE() to match what RFC 2781 says.
While we're at it, note in the comment for get_utf_16_string() the "decoding UTF-16" algorithm in RFC 2781. Change-Id: I5d7dc5c09af0474c055796e49e0c7b94fa87d2ad Reviewed-on: https://code.wireshark.org/review/22171 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/charsets.c')
-rw-r--r--epan/charsets.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/charsets.c b/epan/charsets.c
index 336f7fc6b9..7f298fdba2 100644
--- a/epan/charsets.c
+++ b/epan/charsets.c
@@ -548,6 +548,8 @@ get_ucs_2_string(wmem_allocator_t *scope, const guint8 *ptr, gint length, const
* referred to by the pointer and length as a UTF-16 encoded string, and
* return a pointer to a UTF-8 string, allocated with the wmem scope.
*
+ * See RFC 2781 section 2.2.
+ *
* Encoding parameter should be ENC_BIG_ENDIAN or ENC_LITTLE_ENDIAN.
*
* Specify length in bytes.