aboutsummaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)Author
2013-01-26Merge branch 'bjorn/remove-tuple-funs/OTP-10170'Björn Gustavsson
* bjorn/remove-tuple-funs/OTP-10170: erl_lint: Removes vestiges of tuple fun support
2013-01-26Merge branch 'bjorn/remove-packages/OTP-10348'Björn Gustavsson
* bjorn/remove-packages/OTP-10348: erl_lint: Remove vestiges of package support shell: Remove vestiges of package support
2013-01-25Make Mac wx use Apple compilers regardless of $CCPatrik Nyblom
If using gcc 4.5 from MacPorts, or probably any other third party "real" gcc to compile the VM, an unusable wx-driver was created, as the wx application requires the apple compilers for all files (not only ObjC) since we started to support Cocoa wxWidgets.
2013-01-25Merge branch 'siri/unicode'Siri Hansen
* siri/unicode: [test_server] Don't escape : and @ in test log links [test_server] Don't create latin1 filenames if filename mode is utf8 [test_server] Ensure correct encoding in header for erl2html2:convert [common_test] Update common test modules to handle unicode [ts] Use unicode:characters_to_list/2 instead of binary_to_list/1 [test_server] Add tests for unicode support [test_server] Write link target with correct encoding in erl2html2 [test_server] Update test_server to handle unicode Update preloaded init.beam Make arguments given with -s option to erl aware of file name encoding OTP-10702 OTP-10783
2013-01-25Update copyright yearsBjörn-Egil Dahlberg
2013-01-25Slightly nicer error message when node start fails due to duplicate nameMagnus Henoch
When starting up an Erlang node using a node name that is already in use, the new node used to crash with output starting with this message: {error_logger,{{2013,1,25},{16,0,42}},"Protocol: ~p: register error: ~p~n",["inet_tcp",{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1,[..... With this change, the first line in the output changes to: {error_logger,{{2013,1,25},{16,40,41}},"Protocol: ~tp: the name foo@localhost seems to be in use by another Erlang node",["inet_tcp"]}
2013-01-25Update copyright yearBjörn Gustavsson
We need a dummy commit to add some ticket numbers for additional release notes.
2013-01-25Merge branch 'dgud/wx/depr-driver-if'Dan Gudmundsson
* dgud/wx/depr-driver-if: Document howto build wxWidgets on mac wx: Fix crash in glu tesselate wx: Remove deprecated driver_send_term usage wx: Removed wx internal event
2013-01-25Merge branch 'dgud/wx/treectrl/OTP-10743'Dan Gudmundsson
* dgud/wx/treectrl/OTP-10743: wx: Add wxTreeCtrl:isTreeItemIdOk/1 wx: Fix wxTreeCtrl return values
2013-01-25[test_server] Don't escape : and @ in test log linksSiri Hansen
If escaping :, then links of type "file:///c:/ldisk..." will not work. Escaping @ does not create any problems, but the link becomes harder to read and most modern browsers can handle this.
2013-01-25[test_server] Don't create latin1 filenames if filename mode is utf8Siri Hansen
Skipping test_server_latin1_***_SUITE if filename:native_name_encoding is utf8.
2013-01-25[test_server] Ensure correct encoding in header for erl2html2:convertSiri Hansen
When running under framework common_test, the encoding statement in the HTML header of the file generated with erl2html2:convert would sometimes be faulty. This has been corrected.
2013-01-25[common_test] Update common test modules to handle unicodeSiri Hansen
* Use UTF-8 encoding for all HTML files, except the HTML version of the test suite generated with erl2html2:convert, which will have the same encoding as the original test suite (.erl) file. * Encode link targets in HTML files with test_server_ctrl:uri_encode/1. * Use unicode modifier 't' with ~s when appropriate. * Use unicode:characters_to_list and unicode:characters_to_binary for conversion between binaries and strings instead of binary_to_list and list_to_binary.
2013-01-25[ts] Use unicode:characters_to_list/2 instead of binary_to_list/1Siri Hansen
When reading text files with file:read_file/1, assume that the file has the default encding (epp:default_encoding()) and covert the binary to string by unicode:characters_to_list(Bin,DefaultEncoding) instead of binary_to_list(Bin) as before.
2013-01-25[test_server] Add tests for unicode supportSiri Hansen
2013-01-25[test_server] Write link target with correct encoding in erl2html2Siri Hansen
If the encoding of the source file was utf-8, then the link target could be faulty encoded in the resulting HTML file. This has been corrected.
2013-01-25[test_server] Update test_server to handle unicodeSiri Hansen
* Use UTF-8 encoding for all HTML files, except the HTML version of the test suite generated with erl2html2:convert, which will have the same encoding as the original test suite (.erl) file. * Encode link targets in HTML files, allowing both special characters like "/", "&", "?" etc, and latin1 or unicode characters. * Use unicode modifier 't' with ~s and ~p when appropriate. * Use unicode:characters_to_list and unicode:characters_to_binary for conversion between binaries and strings instead of binary_to_list and list_to_binary.
2013-01-25[common_test] Clean logdir for ct_surefire_SUITESiri Hansen
ct_surefire_SUITE:logdir/1 creates a directory named "specific_logdir" which was never cleaned. This commit makes sure the directory exists and is empty before the test case runs.
2013-01-25[common_test] Fix log dirs on windowsSiri Hansen
ct_surefire_SUITE erronously assumed that logs would always be located under priv_dir, but this is not true on windows where logs are located in temp dir. This has been corrected.
2013-01-25[test_server] Fix copyright in erl2html2_SUITE.erlSiri Hansen
2013-01-25Fix release_handler_SUITE:otp_9395_check_old_codeSiri Hansen
This test often fails dues to too high expectations. Don't expect the test to be more than 1000 times faster with no old code - it just doesn't happen!
2013-01-25Fix a bug in cover when used with no_auto_importJosé Valim
Cover was rewriting guard clauses as non-remote calls. That said, if a guard contains erlang:is_binary(Binary), Cover was incorrectly removing the erlang prefix which lead to errors if is_binary is not auto imported. This commit keeps the abstract format as it is.
2013-01-25Ensure cover keeps the proper file sourceJosé Valim
Whenever a module is compiled via compile:forms/2, the source is set to current directory unless a source option is passed to compile. This commit ensures that cover passes the source information to compile:forms/2 to ensure the source won't be modified after the module is cover compiled.
2013-01-25cover now relies on the compile info to find file sourcesJosé Valim
Prior to this commit, cover relied on a simple heuristic that traverses directory from the beam file to find a source file. The heuristic was maintained with this patch but, if it fails, it fallbacks to the source value in the module compile info. In order to illustrate how it works, one of the tests that could not find its source now passes successfully (showing the source lookup is more robust).
2013-01-25Merge branch 'hb/stdlib/fix_qlc_suite/OTP-10771'Hans Bolinder
* hb/stdlib/fix_qlc_suite/OTP-10771: [stdlib] Fix minor issue with qlc_SUITE
2013-01-25erl_lint: Remove vestiges of package supportBjörn Gustavsson
1c1649481025236cad29a7ee3cbd8f552757b2b6 dropped support for packages in erl_lint, but did not remove the error message for {bad_module_name,M}.
2013-01-25shell: Remove vestiges of package supportBjörn Gustavsson
Remove the which/1 command which provides no useful information for a non-package module. Remove references to the deleted commands import/1, import_all/1, use/1, and use_all/1 (removed in f31ee362c3421922518). Remove code that handles {module,_} in bindings.
2013-01-25erl_lint: Removes vestiges of tuple fun supportBjörn Gustavsson
The warnings for deprecated tuple funs were removed in de7e01c958ff7c9e6da4034a53567a30a4ae5792.
2013-01-25Merge branch 'hb/unicode/OTP-10302'Hans Bolinder
OTP-10742 OTP-10745 OTP-10749 * hb/unicode/OTP-10302: [stdlib] Remove documentation of ~tp Remove one use of iolist_size/1 in io_lib_pretty.erl Add a new function proc_lib:format/2 which takes encoding Export the type erl_scan:token() Make adjustments for Unicode [stdlib] Change default of erl_scan's unicode option Update preloaded Correct recently introduced Unicode related type errors [stdlib] Introduce new functions epp:read_encoding_from_binary/1,2 Extend char() to Unicode characters [kernel] Correct bugs in the old shell (user.erl) [parsetools] Change the encoding of test suites to UTF-8 [stdlib] Fix a contract bug [stdlib] Update the Unicode examples in STDLIB User's Guide [stdlib] Remove documentation of Unicode functions in io_lib
2013-01-25[stdlib] Remove documentation of ~tpHans Bolinder
There seems to be a need for a more elaborate solution when it comes to recognizing printable Unicode characters. The ~tp syntax is experimental, and may be removed in R16B.
2013-01-25Remove one use of iolist_size/1 in io_lib_pretty.erlHans Bolinder
In order to simplify the testing of Unicode atoms a minor adjustment has been made in io_lib_pretty. Unicode atoms will not be introduced until R18 but it may come in handy to be able to pretty-print such atoms in R16. This update affects ~p only; ~w already works.
2013-01-25Add a new function proc_lib:format/2 which takes encodingHans Bolinder
2013-01-25Export the type erl_scan:token()Hans Bolinder
The type erl_parse:token() used to be a two-tuple, but it can also be a three-tuple.
2013-01-25Make adjustments for UnicodeHans Bolinder
2013-01-25[stdlib] Change default of erl_scan's unicode optionHans Bolinder
The value of the undocumented unicode option is very limited. The option will most likely be removed completely soon.
2013-01-25Correct recently introduced Unicode related type errorsHans Bolinder
2013-01-25[stdlib] Introduce new functions epp:read_encoding_from_binary/1,2Hans Bolinder
2013-01-25Extend char() to Unicode charactersHans Bolinder
The code related to the introduction of unicode_string() and unicode_char() has been removed. The types char() and string() have been extended to include Unicode characters. In fact char() was changed some time ago; this commit is about cleaning up the documentation and introduce better names for some functions.
2013-01-25[kernel] Correct bugs in the old shell (user.erl)Hans Bolinder
The inline attribute has been simplified due to problems with compiling to native code. The exact cause it beyond the scope of this commit.
2013-01-25[parsetools] Change the encoding of test suites to UTF-8Hans Bolinder
Should have been done in OTP-10630.
2013-01-25[stdlib] Fix a contract bugHans Bolinder
Also minor corrections of the docs of io(3)
2013-01-25[stdlib] Update the Unicode examples in STDLIB User's GuideHans Bolinder
2013-01-25[stdlib] Remove documentation of Unicode functions in io_libHans Bolinder
The documentation of some Unicode functions in io_lib was committed by mistake.
2013-01-25Merge branch 'bjorn/asn1/further-cleanup/OTP-10588'Björn Gustavsson
* bjorn/asn1/further-cleanup/OTP-10588: (28 commits) Don't export encode_disp/2 and decode_disp/2 in generated modules Remove vestiges of support for the {TypeName,Value} notation Simplify the functions for decoding lengths per,uper: Optimize decoding of the remaining data types per,uper: Optimize decoding of the remaining string types Share all code for dec_gen_prim/3 between per/uper back-ends per,uper: Optimize decoding of the string data types testPrimStrings: Test some constraints By default, encode BIT STRING to bitstrings Teach encode functions to accept a bitstring term for a BIT STRING Fix EXTERNAL 1990/1994 conversion information loss uper: Look up some SizeConstraints at compile-time Enumeration decoding: Don't emit a default clause if it cannot match Slightly optimize per encoding of large INTEGERs with constraints BER run-time: Refactor decoding of string data types Refactor decoding of BIT STRINGs Optimize encoding of ENUMERATED in per and uper Remove the unused run-time modules eldap: Remove calls to undocumented asn1rt* functions BER: Correct bug in 'undec_rest' ...
2013-01-25[inets] Appup test suite now handles version REsMicael Karlberg
2013-01-25Merge branch 'anders/diameter/R16A_release/OTP-10608'Anders Svensson
* anders/diameter/R16A_release/OTP-10608: vsn -> 1.4 Update appup Spec fix Test makefile tweak Warn about applications/capabilities mismatches in doc Minor documentation fixes Remove upgrade code not needed at a major release Comment fix Add patch target to makefile
2013-01-25Fixed some ssh documentationFredrik Gustafsson
2013-01-25Merge branch 'ia/ssl/test-case-timeout'Ingela Anderton Andin
* ia/ssl/test-case-timeout: ssl: Too short timeout in test case
2013-01-25Merge branch 'ia/ssl/dialyzer'Ingela Anderton Andin
* ia/ssl/dialyzer: ssl: Enhance dialyzer specs ssl: Do not return random values ssl: M-x erlang-indent-buffer ssl: Remove unnecessary construction of a return value
2013-01-25Merge branch 'bjorn/asn1/further-cleanup/OTP-10588'Björn Gustavsson
* bjorn/asn1/further-cleanup/OTP-10588: (28 commits) Don't export encode_disp/2 and decode_disp/2 in generated modules Remove vestiges of support for the {TypeName,Value} notation Simplify the functions for decoding lengths per,uper: Optimize decoding of the remaining data types per,uper: Optimize decoding of the remaining string types Share all code for dec_gen_prim/3 between per/uper back-ends per,uper: Optimize decoding of the string data types testPrimStrings: Test some constraints By default, encode BIT STRING to bitstrings Teach encode functions to accept a bitstring term for a BIT STRING Fix EXTERNAL 1990/1994 conversion information loss uper: Look up some SizeConstraints at compile-time Enumeration decoding: Don't emit a default clause if it cannot match Slightly optimize per encoding of large INTEGERs with constraints BER run-time: Refactor decoding of string data types Refactor decoding of BIT STRINGs Optimize encoding of ENUMERATED in per and uper Remove the unused run-time modules eldap: Remove calls to undocumented asn1rt* functions BER: Correct bug in 'undec_rest' ...