diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-10-16 16:24:32 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-10-16 23:27:20 +0000 |
commit | 4695ea20cc8f241c5b2ae0e6fc380cc583ee5050 (patch) | |
tree | 3488e1dda7d07af9b8d5fecbeef5c05cf722ea65 /epan/dissectors/packet-lisp.c | |
parent | b05803db4b7079307565e423a8caf828949add49 (diff) |
Add DEGREE SIGN character to utf8_entities.h and use it.
Add a #define giving the UTF-8 sequence for DEGREE SIGN, and use it in
packet-synphasor.c rather than having it define its own version. Use it
in some other places rather than a string of two octal values.
Change-Id: Ic0f3b23ae0165c9824d89304d683f45bce31dced
Reviewed-on: https://code.wireshark.org/review/11102
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-lisp.c')
-rw-r--r-- | epan/dissectors/packet-lisp.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/epan/dissectors/packet-lisp.c b/epan/dissectors/packet-lisp.c index 30ae2055e7..cf0dcd4a5f 100644 --- a/epan/dissectors/packet-lisp.c +++ b/epan/dissectors/packet-lisp.c @@ -30,6 +30,9 @@ #include <epan/to_str.h> #include <epan/afn.h> #include <epan/expert.h> + +#include <wsutil/utf8_entities.h> + void proto_register_lisp(void); void proto_reg_handoff_lisp(void); @@ -1011,9 +1014,9 @@ dissect_lcaf_geo(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offse "Invalid latitude seconds value (%d)", min); offset += 1; - proto_item_append_text(ti_lat, ": %s %d\302\260 %d' %d\"", + proto_item_append_text(ti_lat, ": %s %d" UTF8_DEGREE_SIGN "%d' %d\"", val_to_str_const(north, lat_typevals, ""), deg, min, sec); - proto_item_append_text(tir, ": (%s%d\302\260%d'%d\"", + proto_item_append_text(tir, ": (%s%d" UTF8_DEGREE_SIGN "%d'%d\"", val_to_str_const(north, lat_typevals, ""), deg, min, sec); /* PROCESS LONGITUDE */ @@ -1048,9 +1051,9 @@ dissect_lcaf_geo(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offse "Invalid longitude seconds value (%d)", min); offset += 1; - proto_item_append_text(ti_lon, ": %s %d\302\260 %d' %d\"", + proto_item_append_text(ti_lon, ": %s %d" UTF8_DEGREE_SIGN " %d' %d\"", val_to_str_const(east, lon_typevals, ""), deg, min, sec); - proto_item_append_text(tir, ", %s%d\302\260%d'%d\")", + proto_item_append_text(tir, ", %s%d" UTF8_DEGREE_SIGN "%d'%d\")", val_to_str_const(east, lon_typevals, ""), deg, min, sec); /* PROCESS ALTITUDE */ |