Use UTF8_HORIZONTAL_ELLIPSIS to indicate string truncation in
bytestring_to_str() and bytes_to_str().
We also use UTF8_HORIZONTAL_ELLIPSIS in the Packet List.
Change-Id: Iaf5c2de97fa71369a8f29ac65fa81f71ed814752
Reviewed-on: https://code.wireshark.org/review/29291
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
#include "to_str-int.h"
#include "strutil.h"
#include <wsutil/pint.h>
#include "to_str-int.h"
#include "strutil.h"
#include <wsutil/pint.h>
+#include <wsutil/utf8_entities.h>
/*
* If a user _does_ pass in a too-small buffer, this is probably
/*
* If a user _does_ pass in a too-small buffer, this is probably
if (truncated) {
*buf_ptr++ = punct; /* 1 byte */
if (truncated) {
*buf_ptr++ = punct; /* 1 byte */
- buf_ptr = g_stpcpy(buf_ptr, "..."); /* 3 bytes */
+ buf_ptr = g_stpcpy(buf_ptr, UTF8_HORIZONTAL_ELLIPSIS); /* 3 bytes */
cur_ptr = bytes_to_hexstr(cur, bd, bd_len); /* max MAX_BYTE_STR_LEN bytes */
if (truncated)
cur_ptr = bytes_to_hexstr(cur, bd, bd_len); /* max MAX_BYTE_STR_LEN bytes */
if (truncated)
- cur_ptr = g_stpcpy(cur_ptr, "..."); /* 3 bytes */
+ cur_ptr = g_stpcpy(cur_ptr, UTF8_HORIZONTAL_ELLIPSIS); /* 3 bytes */
*cur_ptr = '\0'; /* 1 byte */
return cur;
*cur_ptr = '\0'; /* 1 byte */
return cur;