Merge branch 'scrapinghub/update_session_error_logging_fix'

* scrapinghub/update_session_error_logging_fix:
  inets: Fix incorrect argument order

OTP-11794
Merge branch 'hb/clarify_encoding'

* hb/clarify_encoding:
  Clarify the reference manual regarding source file encoding
Remove RTL code that handled the (is_)constant guard

The (is_)constant/1 guard is removed from Erlang long ago and thus
there is no need to handle it in RTL.

While editing these files, also performed some minor cleanup.
Merge remote branch 'origin/peppe/common_test/telnet_logging_final'

* origin/peppe/common_test/telnet_logging_final:
  Add test cases and fix some problems with logging and with the telnet client
  Get ct_telnet_client to print all data from server to log
  Change telnet logging behaviour

OTP-11690
Shorten default timetrap timeout for ct_master test suite
Merge branch 'nox/maps-v3_core-lit_vars'

* nox/maps-v3_core-lit_vars:
  Properly collect variables in map expressions in v3_core
inets: Continue CTify test suite
wx: Fix configure for win64 with wxWidgets-3.0
Merge branch 'siri/master-cuddle-with-tests'

* siri/master-cuddle-with-tests:
  Remove "coding: utf-8" from test files
  Change encoding for XML files to utf-8
Teach the call_time trace to notice when the trace dies (non-SMP system)

The call_time trace is a special kind of tracing that requires
a tracer process just like ordinary call trace, but it never
actually sends anything to the tracer. It merely use the existence
of a trace process (and call trace flags) as an indication that
call_time tracing is active for the process.

If the tracer dies in a non-SMP run-time system, processes with
call_time tracing would not notice that the tracer had
died. Furthermore, if the set_on_spawn flag was active, the dead
tracer could be propagaged to newly spawned processes.

Before accumulating trace information in a non-SMP system, always
validate the tracer process. (In an SMP system, a reference to a
dead tracer will be cleared away each time a process is scheduled.)

While we could put all of the new code beam_bp.c, we have chosen to
make a function call from beam_bp.c to a function in erl_trace.c for
clarity's sake and to ease further maintenance. In the future, we
might want to handle tracing in more similar ways in the SMP and
non-SMP system.
Merge branch 'bjorn/cuddle-with-tests'

* bjorn/cuddle-with-tests:
  cover_SUITE:reconnect/1: Let the other side initiate the disconnect
  Attempt to provide more information if a test case fails
  prim_file_SUITE: Remove the short 5 seconds timetrap timeout
  shell_SUITE: Give bs_match_bin_SUITE/1 more time
Merge branch 'bjorn/asn1/cleanup/OTP-11727'

* bjorn/asn1/cleanup/OTP-11727:
  Clean up reporting of errors in IMPORTS
  asn1ct_check: Clean up error checking for INSTANCE OF
  asn1ct_check: Rewrite error checking for INTEGER and BIT STRING
  asn1ct_check: Remove unreachable clauses handling {identifier,_,_}
  asn1ct_check: Let asn1_error/3 throw its result
Merge branch 'bjorn/erts/fix-lingering-tracer'

* bjorn/erts/fix-lingering-tracer:
  Teach the call_time trace to notice when the trace dies (non-SMP system)
Merge branch 'ks/cerl-type-fixes'

* ks/cerl-type-fixes:
  Restore the alphabetical order of Core Erlang records
  Clean up the types of cerl
wx: Fix listCtrl sort callback
Fix some Dialyzer warnings

Dialyzer recognizes a certain pattern that makes it possible to get
rid of 'The created fun has no local return' warnings.
Correct the contract of io:getopts()
test_server: Fix a Dialyzer warning
Merge branch 'hb/spec_related_fixes'

* hb/spec_related_fixes:
  test_server: Fix a Dialyzer warning
  Correct the contract of io:getopts()
  Fix some Dialyzer warnings
Return warnings for unknown types and functions in Erlang Mode

The warnings about unknown types and functions are now returned
when calling Dialyzer from Erlang, in particular from an escript.

When calling Dialyzer from the command line the warnings about unknown
types and functions are output last as before; and when using the GUI
the warnings are displayed in a pop-up window, as before.