Wireshark-bugs: [Wireshark-bugs] [Bug 6346] Lua: TvbRange missing unicode string method
Date: Sat, 17 Sep 2011 12:12:29 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6346

Tony Trinh <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #4 from Tony Trinh <[email protected]> 2011-09-17 15:12:26 EDT ---
(In reply to comment #3)
That seems like a separate bug to me. I don't see what that has to do with
`TvbRange:ustringz()`, which is expected to extract a string from a buffer; not
add fields to a tree.


Instead of changing the parameter type of `TvbRange_ustring_any()`, you can
translate the Boolean into the encoding parameter before passing to
`tvb_get_ephemeral_unicode_string()`. 

For example:

`tvb_get_ephemeral_unicode_string( tvb, offset, NULL, little_endian ?
ENC_LITTLE_ENDIAN : ENC_BIG_ENDIAN );`

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.