asn1rt_check: Fix transform_to_EXTERNAL1990 for binary input

If ber_bin is used, decoded EXTERNAL types will include a binary
Data_value in the {'EXTERNAL', ...} tuple.  When handing such a tuple to
the encoder again, we should properly encode it.

To do so, we treat a binary data part just like a list data part.
Add support for NULL value in odbc:param_query

Support atom 'null' in odbc:param_query as database NULL value
Fix "ODBC: received unexpected info:{tcp_closed, ...}" when connection is terminating.
Fix possible access violation with 64bit ODBC.
Unbreak floating point on middle-endian machines.

On some ARMs (and maybe other platforms), doubles are stored with the
the two 32-bit words reversed with respect to more common
architectures.

The symptom is this:

> io_lib:write(1.0).
"0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005299808824"

Detect that and account for it when decoding floats.
inet_drv.c: Set sockaddr lengths in inet_set_[f]address

Set appropriate values for the sockaddr length fields---sai.sin_len
and sai6.sin6_len---if those fields exist; rely on the NO_SA_LEN
configure check to see if they exist.  The length field exists on at
least FreeBSD, and there it needs to have a proper value for instance
in the call to sctp_bindx, or else that will fail with EINVAL.
Fix Table Viewer crash after a 'Found' -> 'Not found' search sequence

Start position was lost after a 'Found' -> 'Not found' search sequence
leading an undefined position in the next search
Escape control characters in Table Viewer

Similar behaviour to old tv.
Objects in tables supposed to be printed in a single line
and it looks ugly when a [...,10,...] integer list
creates a new-line.
Fix Table Viewer search crash on new|changed|deleted rows
Fix bug where zip archives wrongly have a first disk number set to 1
Add tests showing that trying to delete non-existing object may corrupt the table index

In case of bag tables, trying to delete a non-existing object leads to
the index becoming corrupt. This happens if the non-existing object we
try to delete happens to share its key and index field value with a single
existing object in the table.
Result: The index entry corresponding to the existing object is
removed.
Prevent index from being corrupted if a nonexistent item is deleted

We have to ensure that we actually delete the last object with a
given (key, index) pair before removing the index.
Fix lib/src/test/ssh_basic_SUITE.erl to fix IPv6 option typos

Fixed incorrect option "ipv6_disable" to "ipv6_disabled"
as documented in the ssh manual.
observer: fix app file (Noticed-by: Motiejus Jakstys)

Add missing observer modules to observer.app.src.
Encode fix

The header is used when incrementing counters. Sending answers in
the list form was broken because of this.
Fix various code typos for R15B02
Fix various doc typos for R15B02
Fix the erlc -MP flag

Because of a copy-and-paste error in erlc.c, the -MP flag had the same
effect as -MG. As a workaround, you had to pass +makedep_phony to enable
the MP option. This patch makes -MP work as intended.
Add test for floating-point output to float_SUITE.

This catches endianness problems, such as recently reported for ARMs.
Revise the autoconf tests for double middle endianness.

The previous iteration didn't work for big-endian systems.  Now use
code very close to what Erts does internally.

Also, only warn when the double endianness is unknown - i.e. when
we're cross-compiling.
erlsrv: gracefully stop emulator on Windows shutdown

Windows will send the SERVICE_CONTROL_SHUTDOWN event to the service control
handler when shutting down the system. Instead of ignoring the event, erlsrv
will now invoke the stop action.  Likewise, the Erlang emulator (and it's port
drivers) must not quit upon reception of the CTRL_SHUTDOWN_EVENT event in the
console control handler.
Fix support for leap seconds-aware timezones

erlang:universaltime_to_localtime is leap seconds-aware (since 2008),
however erlang:localtime_to_universaltime is not, which gives
surprising results on systems configured with leap seconds-aware
timezones:

1> erlang:universaltime_to_localtime({{2012,1,1},{0,0,0}}).
{{2012,1,1},{0,0,0}}
2> erlang:localtime_to_universaltime({{2012,1,1},{0,0,0}}).
{{2012,1,1},{0,0,24}}

and completely breaks calendar:local_time_to_universal_time_dst:

3> calendar:local_time_to_universal_time_dst({{2011,1,1},{0,0,0}}).
[]

Signed-off-by: Piotr Sikora <piotr.sikora@frickle.com>