Convert plugin files proto_tree_add_item() 'encoding' arg for field types FT_STRING...
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 15 Oct 2011 19:58:31 +0000 (19:58 +0000)
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 15 Oct 2011 19:58:31 +0000 (19:58 +0000)
 1. If there's no character encoding (ENC_ASCII, ...) specified
    then use ENC_ASCII.
 2. For all but FT_UINT_STRING, always use ENC_NA
    (replacing any existing True/1/FALSE/0
    /ENC_BIG_ENDIAN/ENC_LITTLE_ENDIAN).

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39429 f5534014-38df-0310-8fa8-9805f1628bb7

plugins/docsis/packet-bpkmattr.c
plugins/docsis/packet-tlv.c
plugins/docsis/packet-vendor.c
plugins/ethercat/packet-ams.c
plugins/ethercat/packet-ecatmb.c
plugins/irda/packet-irda.c
plugins/opcua/opcua_transport_layer.c
plugins/unistim/packet-unistim.c
plugins/wimax/msg_ucd.c

index d261c90158b95ff1a40401b5f0c86bb1f96c5baf..52e1acdba1164e477e0cc612ebe2deecceb5d57d 100644 (file)
@@ -163,7 +163,7 @@ dissect_attrs (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
           break;
         case BPKM_SERIAL_NUM:
           proto_tree_add_item (tree, hf_docsis_bpkmattr_serial_num, tvb, pos,
-                               length, FALSE);
+                               length, ENC_ASCII|ENC_NA);
           break;
         case BPKM_MANUFACTURER_ID:
           if (length == 3)
@@ -194,7 +194,7 @@ dissect_attrs (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
           break;
         case BPKM_DISPLAY_STR:
           proto_tree_add_item (tree, hf_docsis_bpkmattr_display_str, tvb, pos,
-                               length, FALSE);
+                               length, ENC_ASCII|ENC_NA);
           break;
         case BPKM_AUTH_KEY:
           if ((length == 96) || (length == 128))
index ba0710a91730a0b1e68a060c9ce9d3a56e572883..4a1b17b9e191f7148d39490966cb4397baba568f 100644 (file)
@@ -680,7 +680,7 @@ dissect_phs_err (tvbuff_t * tvb, proto_tree * tree, int start,
           break;
         case PHS_ERR_MSG:
           proto_tree_add_item (err_tree, hf_docsis_tlv_phs_err_msg, tvb, pos,
-                               length, FALSE);
+                               length, ENC_ASCII|ENC_NA);
           break;
         }                       /* switch */
       pos = pos + length;
@@ -900,7 +900,7 @@ dissect_sflow_err (tvbuff_t * tvb, proto_tree * tree, int start,
           break;
         case SFW_ERR_MSG:
           proto_tree_add_item (err_tree, hf_docsis_tlv_sflow_err_msg, tvb,
-                               pos, length, FALSE);
+                               pos, length, ENC_ASCII|ENC_NA);
           break;
         }                       /* switch */
       pos = pos + length;
@@ -1141,7 +1141,7 @@ dissect_sflow (tvbuff_t * tvb, proto_tree * tree, int start, guint16 len,
           break;
         case SFW_SERVICE_CLASS_NAME:
           proto_tree_add_item (sflow_tree, hf_docsis_tlv_sflow_classname, tvb,
-                               pos, length, FALSE);
+                               pos, length, ENC_ASCII|ENC_NA);
           break;
         case SFW_ERRORS:
           dissect_sflow_err (tvb, sflow_tree, pos, length);
@@ -1418,7 +1418,7 @@ dissect_clsfr_err (tvbuff_t * tvb, proto_tree * tree, int start,
           break;
         case CFR_ERR_MSG:
           proto_tree_add_item (err_tree, hf_docsis_tlv_clsfr_err_msg, tvb,
-                               pos, length, FALSE);
+                               pos, length, ENC_ASCII|ENC_NA);
           break;
         }                       /* switch */
       pos = pos + length;
@@ -2360,7 +2360,7 @@ dissect_snmpv3_kickstart(tvbuff_t * tvb, proto_tree *tree, int start, guint16 le
         case SNMPV3_SEC_NAME:
           proto_tree_add_item (snmpv3_tree,
                                hf_docsis_tlv_snmpv3_kick_name, tvb,
-                               pos, length, FALSE);
+                               pos, length, ENC_ASCII|ENC_NA);
           break;
         case SNMPV3_MGR_PUB_NUM:
           proto_tree_add_item (snmpv3_tree,
@@ -2604,7 +2604,7 @@ dissect_tcc_err(tvbuff_t * tvb, proto_tree *tree, int start, guint16 len)
         case TCC_ERR_MSG:
           proto_tree_add_item (tccerr_tree,
                                hf_docsis_tcc_err_msg, tvb,
-                               pos, length, FALSE);
+                               pos, length, ENC_ASCII|ENC_NA);
           break;
         }                       /* switch */
       pos = pos + length;
@@ -3976,7 +3976,7 @@ dissect_tlv (tvbuff_t * tvb, packet_info * pinfo _U_, proto_tree * tree)
             break;
           case TLV_SW_UPG_FILE:
             proto_tree_add_item (tlv_tree, hf_docsis_tlv_sw_file, tvb, pos,
-                                 length, FALSE);
+                                 length, ENC_ASCII|ENC_NA);
             break;
           case TLV_SNMP_WRITE_CTRL:
             proto_tree_add_item (tlv_tree, hf_docsis_tlv_snmp_access, tvb,
index 635b0dce9b031b8c87e36802389322570ddd25df..75ce3969a1d0d60217cdb1505a33da5ddda10f5a 100644 (file)
@@ -206,7 +206,7 @@ dissect_cisco (tvbuff_t * tvb, proto_tree * tree, gint vsif_len)
           break;
         case IOS_CONFIG_FILE:
           proto_tree_add_item (tree, hf_docsis_vsif_cisco_config_file, tvb,
-                               pos, length, FALSE);
+                               pos, length, ENC_ASCII|ENC_NA);
         }
       pos += length;
     }
index 2d609aa9a13e067ebf9b90ad278f7632bbbede1e..e5d07ccb57294aff5c6878975e9510e5c48c00da 100644 (file)
@@ -779,7 +779,7 @@ static void dissect_ams(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                     proto_tree_add_item(ams_adstree, hf_ams_adsversionbuild, tvb, offset, sizeof(guint16), ENC_LITTLE_ENDIAN);
                     offset+=sizeof(guint16);
 
-                    proto_tree_add_item(ams_adstree, hf_ams_adsdevicename, tvb, offset, ams_length-offset, TRUE);
+                    proto_tree_add_item(ams_adstree, hf_ams_adsdevicename, tvb, offset, ams_length-offset, ENC_ASCII|ENC_NA);
                  }
               }
            }
index 19f8bfe0de06bb507c15841011f6070226685780..278974c4846615f2fb24b18d4501aa348f3d6806 100644 (file)
@@ -842,7 +842,7 @@ static void dissect_ecat_coe(tvbuff_t *tvb, gint offset, packet_info *pinfo, pro
                      proto_tree_add_item(ecat_coe_tree, hf_ecat_mailbox_coe_sdoinfomaxsub, tvb, offset++, 1, ENC_LITTLE_ENDIAN);
                      proto_tree_add_item(ecat_coe_tree, hf_ecat_mailbox_coe_sdoinfoobjcode, tvb, offset++, 1, ENC_LITTLE_ENDIAN);
 
-                     proto_tree_add_item(ecat_coe_tree, hf_ecat_mailbox_coe_sdoinfoname, tvb, offset, coe_length-offset, TRUE);
+                     proto_tree_add_item(ecat_coe_tree, hf_ecat_mailbox_coe_sdoinfoname, tvb, offset, coe_length-offset, ENC_ASCII|ENC_NA);
                   }
                   break;
                case ECAT_COE_INFO_OPCODE_ENTRY_Q:
@@ -896,7 +896,7 @@ static void dissect_ecat_coe(tvbuff_t *tvb, gint offset, packet_info *pinfo, pro
                         proto_tree_add_item(ecat_coe_tree, hf_ecat_mailbox_coe_sdoinfomaxvalue, tvb, offset, objlen, ENC_NA);
                         offset+=objlen;
                      }
-                     proto_tree_add_item(ecat_coe_tree, hf_ecat_mailbox_coe_sdoinfoname, tvb, offset, coe_length-offset, TRUE);
+                     proto_tree_add_item(ecat_coe_tree, hf_ecat_mailbox_coe_sdoinfoname, tvb, offset, coe_length-offset, ENC_ASCII|ENC_NA);
                   }
                   break;
                case ECAT_COE_INFO_OPCODE_ERROR_S:
@@ -1128,7 +1128,7 @@ static void dissect_ecat_eoe(tvbuff_t *tvb, gint offset, packet_info *pinfo, pro
                proto_tree_add_item(ecat_eoe_init_tree, hf_ecat_mailbox_eoe_init_dnsserver, tvb, offset, 4, ENC_LITTLE_ENDIAN);
                offset+=4;
 
-               proto_tree_add_item(ecat_eoe_init_tree, hf_ecat_mailbox_eoe_init_dnsname, tvb, offset, 32, TRUE);
+               proto_tree_add_item(ecat_eoe_init_tree, hf_ecat_mailbox_eoe_init_dnsname, tvb, offset, 32, ENC_ASCII|ENC_NA);
             }
             else
                proto_item_append_text(anItem, " - Invalid length!");
@@ -1222,7 +1222,7 @@ static void dissect_ecat_foe(tvbuff_t *tvb, gint offset, packet_info *pinfo, pro
             proto_tree_add_item(ecat_foe_tree, hf_ecat_mailbox_foe_filelength, tvb, offset, 4, ENC_LITTLE_ENDIAN);
             offset+=4;
 
-            proto_tree_add_item(ecat_foe_tree, hf_ecat_mailbox_foe_filename, tvb, offset, foe_length-offset, TRUE);
+            proto_tree_add_item(ecat_foe_tree, hf_ecat_mailbox_foe_filename, tvb, offset, foe_length-offset, ENC_ASCII|ENC_NA);
             break;
 
          case ECAT_FOE_OPMODE_DATA:
@@ -1261,7 +1261,7 @@ static void dissect_ecat_foe(tvbuff_t *tvb, gint offset, packet_info *pinfo, pro
             proto_tree_add_item(ecat_foe_tree, hf_ecat_mailbox_foe_errcode, tvb, offset, 4, ENC_LITTLE_ENDIAN);
             offset+=4;
 
-            proto_tree_add_item(ecat_foe_tree, hf_ecat_mailbox_foe_errtext, tvb, offset, foe_length-offset, TRUE);
+            proto_tree_add_item(ecat_foe_tree, hf_ecat_mailbox_foe_errtext, tvb, offset, foe_length-offset, ENC_ASCII|ENC_NA);
             break;
 
          case ECAT_FOE_OPMODE_BUSY:
index ac61d5f99c330a3eb7b12df3ec754047a7aceed0..25f92dc05d2e7c988b37792a6f7d286602f3a9d2 100644 (file)
@@ -626,10 +626,10 @@ static void dissect_iap_request(tvbuff_t* tvb, packet_info* pinfo, proto_tree* r
         switch (op)
         {
             case GET_VALUE_BY_CLASS:
-                proto_tree_add_item(tree, hf_iap_class_name, tvb, offset, 1, ENC_BIG_ENDIAN);
+                proto_tree_add_item(tree, hf_iap_class_name, tvb, offset, 1, ENC_ASCII|ENC_BIG_ENDIAN);
                 offset += 1 + clen;
 
-                proto_tree_add_item(tree, hf_iap_attr_name, tvb, offset, 1, ENC_BIG_ENDIAN);
+                proto_tree_add_item(tree, hf_iap_attr_name, tvb, offset, 1, ENC_ASCII|ENC_BIG_ENDIAN);
                 offset += 1 + alen;
                 break;
         }
@@ -838,7 +838,7 @@ static void dissect_iap_result(tvbuff_t* tvb, packet_info* pinfo, proto_tree* ro
                                 if (!iap_conv || !iap_conv->pattr_dissector ||
                                     !iap_conv->pattr_dissector->value_dissector(tvb, offset, pinfo, entry_tree,
                                                                                 n, type))
-                                    proto_tree_add_item(entry_tree, hf_iap_string, tvb, offset + 1, 1, ENC_BIG_ENDIAN);
+                                    proto_tree_add_item(entry_tree, hf_iap_string, tvb, offset + 1, 1, ENC_ASCII|ENC_BIG_ENDIAN);
                                 break;
                         }
                         offset += attr_len;
@@ -1618,7 +1618,7 @@ static void dissect_xid(tvbuff_t* tvb, packet_info* pinfo, proto_tree* root, pro
                     col_append_str(pinfo->cinfo, COL_INFO, "\"");
                     if (root)
                         proto_tree_add_item(lmp_tree, hf_lmp_xid_name, tvb, offset,
-                                            -1, FALSE);
+                                            -1, ENC_ASCII|ENC_NA);
                 }
                 else
                 {
@@ -1672,7 +1672,7 @@ static void dissect_log(tvbuff_t* tvb, packet_info* pinfo, proto_tree* root)
         if (pinfo->pseudo_header->irda.pkttype == IRDA_MISSED_MSG)
             proto_tree_add_item(tree, hf_log_missed, tvb, 0, 0, FALSE);
         else
-            proto_tree_add_item(tree, hf_log_msg, tvb, 0, -1, FALSE);    
+            proto_tree_add_item(tree, hf_log_msg, tvb, 0, -1, ENC_ASCII|ENC_NA);    
     }
 }
 
index fb72f6e6f9a6dd222318dc7ee79b22d57cf19ee0..d4abdaedcb6c5033fbecb411c4cddac88062505a 100644 (file)
@@ -128,7 +128,7 @@ void registerTransportLayerTypes(int proto)
 int parseHello(proto_tree *tree, tvbuff_t *tvb, gint *pOffset)
 {
     proto_tree_add_item(tree, hf_opcua_transport_type, tvb, *pOffset, 3, TRUE); *pOffset+=3;
-    proto_tree_add_item(tree, hf_opcua_transport_chunk, tvb, *pOffset, 1, TRUE); *pOffset+=1;
+    proto_tree_add_item(tree, hf_opcua_transport_chunk, tvb, *pOffset, 1, ENC_ASCII|ENC_NA); *pOffset+=1;
     proto_tree_add_item(tree, hf_opcua_transport_size, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
     proto_tree_add_item(tree, hf_opcua_transport_ver, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
     proto_tree_add_item(tree, hf_opcua_transport_rbs, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
@@ -142,7 +142,7 @@ int parseHello(proto_tree *tree, tvbuff_t *tvb, gint *pOffset)
 int parseAcknowledge(proto_tree *tree, tvbuff_t *tvb, gint *pOffset)
 {
     proto_tree_add_item(tree, hf_opcua_transport_type, tvb, *pOffset, 3, TRUE); *pOffset+=3;
-    proto_tree_add_item(tree, hf_opcua_transport_chunk, tvb, *pOffset, 1, TRUE); *pOffset+=1;
+    proto_tree_add_item(tree, hf_opcua_transport_chunk, tvb, *pOffset, 1, ENC_ASCII|ENC_NA); *pOffset+=1;
     proto_tree_add_item(tree, hf_opcua_transport_size, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
     proto_tree_add_item(tree, hf_opcua_transport_ver, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
     proto_tree_add_item(tree, hf_opcua_transport_rbs, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
@@ -155,7 +155,7 @@ int parseAcknowledge(proto_tree *tree, tvbuff_t *tvb, gint *pOffset)
 int parseError(proto_tree *tree, tvbuff_t *tvb, gint *pOffset)
 {
     proto_tree_add_item(tree, hf_opcua_transport_type, tvb, *pOffset, 3, TRUE); *pOffset+=3;
-    proto_tree_add_item(tree, hf_opcua_transport_chunk, tvb, *pOffset, 1, TRUE); *pOffset+=1;
+    proto_tree_add_item(tree, hf_opcua_transport_chunk, tvb, *pOffset, 1, ENC_ASCII|ENC_NA); *pOffset+=1;
     proto_tree_add_item(tree, hf_opcua_transport_size, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
     proto_tree_add_item(tree, hf_opcua_transport_error, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
     parseString(tree, tvb, pOffset, hf_opcua_transport_reason);
@@ -170,7 +170,7 @@ int parseMessage(proto_tree *tree, tvbuff_t *tvb, gint *pOffset)
     int ServiceId = 0;
 
     proto_tree_add_item(tree, hf_opcua_transport_type, tvb, *pOffset, 3, TRUE); *pOffset+=3;
-    proto_tree_add_item(tree, hf_opcua_transport_chunk, tvb, *pOffset, 1, TRUE); *pOffset+=1;
+    proto_tree_add_item(tree, hf_opcua_transport_chunk, tvb, *pOffset, 1, ENC_ASCII|ENC_NA); *pOffset+=1;
     proto_tree_add_item(tree, hf_opcua_transport_size, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
     proto_tree_add_item(tree, hf_opcua_transport_scid, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
 
@@ -202,7 +202,7 @@ int parseOpenSecureChannel(proto_tree *tree, tvbuff_t *tvb, gint *pOffset)
     int ServiceId = 0;
     
     proto_tree_add_item(tree, hf_opcua_transport_type, tvb, *pOffset, 3, TRUE); *pOffset+=3;
-    proto_tree_add_item(tree, hf_opcua_transport_chunk, tvb, *pOffset, 1, TRUE); *pOffset+=1;
+    proto_tree_add_item(tree, hf_opcua_transport_chunk, tvb, *pOffset, 1, ENC_ASCII|ENC_NA); *pOffset+=1;
     proto_tree_add_item(tree, hf_opcua_transport_size, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
     proto_tree_add_item(tree, hf_opcua_transport_scid, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
     parseString(tree, tvb, pOffset, hf_opcua_transport_spu);
@@ -227,7 +227,7 @@ int parseOpenSecureChannel(proto_tree *tree, tvbuff_t *tvb, gint *pOffset)
 int parseCloseSecureChannel(proto_tree *tree, tvbuff_t *tvb, gint *pOffset)
 {
     proto_tree_add_item(tree, hf_opcua_transport_type, tvb, *pOffset, 3, TRUE); *pOffset+=3;
-    proto_tree_add_item(tree, hf_opcua_transport_chunk, tvb, *pOffset, 1, TRUE); *pOffset+=1;
+    proto_tree_add_item(tree, hf_opcua_transport_chunk, tvb, *pOffset, 1, ENC_ASCII|ENC_NA); *pOffset+=1;
     proto_tree_add_item(tree, hf_opcua_transport_size, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
     proto_tree_add_item(tree, hf_opcua_transport_scid, tvb, *pOffset, 4, ENC_LITTLE_ENDIAN); *pOffset+=4;
     return -1;
index 84fc0ac6fb4231de1435fd15c66331e1cb5e56bc..85690455f82434d8e38cdc7fd097fd9371c7886f 100644 (file)
@@ -365,7 +365,7 @@ dissect_uftp_message(proto_tree *unistim_tree,packet_info *pinfo _U_,tvbuff_t *t
          offset+=1;
          /* Get filename */
          str_len = tvb_length_remaining(tvb, offset);
-         proto_tree_add_item(msg_tree,hf_uftp_filename,tvb,offset,str_len,FALSE);
+         proto_tree_add_item(msg_tree,hf_uftp_filename,tvb,offset,str_len,ENC_ASCII|ENC_NA);
          offset += str_len;
          break;
 
@@ -545,7 +545,7 @@ dissect_basic_phone(proto_tree *msg_tree,
       case 0x02:
    /*Firmware Version*/
          proto_tree_add_item(msg_tree,hf_basic_phone_fw_ver,
-                             tvb,offset,msg_len,FALSE);
+                             tvb,offset,msg_len,ENC_ASCII|ENC_NA);
          offset+=msg_len;
          break;
       case 0x03:
@@ -562,7 +562,7 @@ dissect_basic_phone(proto_tree *msg_tree,
       case 0x08:
    /*Product Engineering Code*/
          proto_tree_add_item(msg_tree,hf_basic_prod_eng_code,
-                             tvb,offset,msg_len,FALSE);
+                             tvb,offset,msg_len,ENC_ASCII|ENC_NA);
          offset+=msg_len;
          break;
       case 0x09:
@@ -1077,7 +1077,7 @@ dissect_display_switch(proto_tree *msg_tree,
          set_ascii_item(msg_tree,tvb,offset,msg_len);
          offset+=msg_len;
          proto_tree_add_item(msg_tree,hf_generic_string,
-                             tvb,offset,msg_len,FALSE);
+                             tvb,offset,msg_len,ENC_ASCII|ENC_NA);
          offset+=msg_len;
          break;
       case 0x1b:
@@ -1233,7 +1233,7 @@ dissect_display_switch(proto_tree *msg_tree,
                                 tvb,offset,1,ENC_BIG_ENDIAN);
          offset+=1; msg_len-=1;
          proto_tree_add_item(msg_tree,hf_generic_string,
-                             tvb,offset,msg_len,FALSE);
+                             tvb,offset,msg_len,ENC_ASCII|ENC_NA);
          offset+=msg_len;
          if((address_byte&DISPLAY_WRITE_ADDRESS_SOFT_LABEL_FLAG)==
                           DISPLAY_WRITE_ADDRESS_SOFT_LABEL_FLAG){
@@ -1775,10 +1775,10 @@ dissect_network_switch(proto_tree *msg_tree,
          proto_tree_add_item(msg_tree,hf_generic_data,tvb,offset,1,ENC_NA);
          offset+=1;msg_len-=1;
          string_len=tvb_strsize(tvb,offset);
-         proto_tree_add_item(msg_tree,hf_net_full_pathname,tvb,offset,string_len,ENC_NA);
+         proto_tree_add_item(msg_tree,hf_net_full_pathname,tvb,offset,string_len,ENC_ASCII|ENC_NA);
          offset+=string_len;msg_len-=string_len;
          string_len=tvb_strsize(tvb,offset);
-         proto_tree_add_item(msg_tree,hf_net_file_identifier,tvb,offset,string_len,ENC_NA);
+         proto_tree_add_item(msg_tree,hf_net_file_identifier,tvb,offset,string_len,ENC_ASCII|ENC_NA);
          offset+=string_len;msg_len-=string_len;
          proto_tree_add_item(msg_tree,hf_net_file_server_port,tvb,offset,2,ENC_BIG_ENDIAN);
          offset+=2;msg_len-=2;
index 4426765d2b9800e2766798710e981b1a9244e94e..abcf93717a2379e6b7cc1c0a9f11eaa34be6c231 100644 (file)
@@ -553,7 +553,7 @@ void dissect_mac_mgmt_msg_ucd_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_t
                                        /* add TLV subtree */
                                        tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_ucd_decoder, ucd_tree, hf_ucd_tlv_t_177_normalized_cn_override2, tvb, offset, tlv_len, FALSE);
                                        proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_177_normalized_cn_override2_first_line, tvb, offset + 2, 1, ENC_BIG_ENDIAN);
-                                       proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_177_normalized_cn_override2_list, tvb, offset + 3, 7, FALSE);
+                                       proto_tree_add_item(tlv_tree, hf_ucd_tlv_t_177_normalized_cn_override2_list, tvb, offset + 3, 7, ENC_ASCII|ENC_NA);
                                        break;
                                }
                                case UCD_TLV_T_186_UPPER_BOUND__AAS_PREAMBLE: