Add new string_enc and stringz_enc methods that take an encoding value
as an argument, just as the add_packet_field method for a tree does.

Use tvb_get_string_enc() and tvb_get_stringz_enc() rather than
tvb_get_string(), tvb_get_stringz(), tvb_get_unicode_string(), and
tvb_get_unicode_stringz().  Treat "ustring" as meaning "UTF-16-encoded
Unicode string" rather than "UCS-2-encoded subset-of-Unicode string".

svn path=/trunk/; revision=54310
Improved the valuestring documentation.

svn path=/trunk/; revision=54311
unknown2/3 -> capturelen1/2

NEWS got updated

svn path=/trunk/; revision=54312
Copy Evan r54250 changes to asn/

Rename more to_str functions to have ep_ in the name if they return ephemeral buffers.

svn path=/trunk/; revision=54313
Change G_GINT64_CONSTANT(xxxxU) to G_GUINT64_CONSTANT(xxxx)

svn path=/trunk/; revision=54314
Avoid including <epan/range.h> in dissectors.

svn path=/trunk/; revision=54315
Try to guess some more values looking at the decoded values from
a (version 2) screenshot

svn path=/trunk/; revision=54316
unknown5 is probably the speed in 500kHz

svn path=/trunk/; revision=54317
Get rid of tvb_get_unicode_string() and tvb_get_unicode_stringz();
instead, have static routines to get UCS-2 (no surrogate pairs) and
UTF-16 (with surrogate pairs) strings, with the routines to handle
UTF-16 actually handling surrogate pairs.

Update some out-of-date comments while we're at it.

svn path=/trunk/; revision=54318
Convert to NEW_PROTO_TREE_API

svn path=/trunk/; revision=54319
Update documentation to reflect removal of tvb_get_unicode_string*, full
support for (correct) UTF-16, and new string encodings.

svn path=/trunk/; revision=54320
Update documentation to reflect the non-existence of
proto_tree_add_unicode_string().

svn path=/trunk/; revision=54321
Fix compilation without HAVE_HFI_SECTION_INIT defined.

svn path=/trunk/; revision=54322
make it possible to compile the sample dissector.
Fix one trivial error found.
Add a missing forward declaration.

svn path=/trunk/; revision=54323
Commit sample program to generate charsets.c tables using iconv()

For now only single-byte, and it must be possible to encode whole charset as UCS-2

svn path=/trunk/; revision=54324
Move base64_to_tvb() to tvbuff_base64.c

svn path=/trunk/; revision=54325
Move epan/base64.[ch] to wsutil/ with function name change.

svn path=/trunk/; revision=54326
Drop isprint.h use g_ascii_isprint() when this include hack was enabled.

svn path=/trunk/; revision=54327
isascii(x) && isprint(x) -> g_ascii_isprint(x)

svn path=/trunk/; revision=54328
ui/gtk/follow_stream.c was using isprint.h hack, change all isprint()

svn path=/trunk/; revision=54329