summaryrefslogtreecommitdiff
path: root/lib/stdlib
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Merge branch 'hb/stdlib/unicode_corrections/OTP-10820' into ↵Patrik Nyblom2013-02-185-45/+91
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pan/unicode_printable_ranges * hb/stdlib/unicode_corrections/OTP-10820: Fix some Unicode issues Conflicts: lib/stdlib/test/shell_SUITE.erl
| | * | Fix some Unicode issuesHans Bolinder2013-02-185-50/+103
| | | | | | | | | | | | | | | | Also let the Erlang shell use the new function io:printable_range().
| * | | Make shell_SUITE:otp_10302 use +pc unicode when neededPatrik Nyblom2013-02-181-6/+13
| | | |
| * | | Fix io_proto_SUITE to handle the new io_lib_pretty:printPatrik Nyblom2013-02-181-3/+3
| | | |
| * | | Add testcase for +pc and io:printable_range/0Patrik Nyblom2013-02-181-3/+93
| | | | | | | | | | | | | | | | | | | | Also fixed otp_10302 to test both on a node with +pc unicode and a node with +pc latin1.
| * | | Make printing of UTF-8 in binaries behave like lists.Patrik Nyblom2013-02-181-13/+16
| | | | | | | | | | | | | | | | | | | | This means that only UTF-8 characters in binaries that conform to the printable_range are printed as <<"..."/utf8>> in io_lib_pretty.
| * | | Document +pc flag and io:printable_range/0Patrik Nyblom2013-02-182-1/+25
| | | |
| * | | Add usage of and spec for io:printable_range/0Patrik Nyblom2013-02-182-15/+40
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | This makes both io:format("~tp", ...) and the shell honor the +pc setting and also reverts the shell to the old behaviour of only interpreting latin1 strings as "strings" by default. +pc unicode turns on the R16A behaviour. Doing io:format("~tp~n", [[1024,1025]]). will show you the difference when starting with +pc unicode.
* | | Merge branch 'bjorn/unicode-doc/OTP-10852'Björn Gustavsson2013-02-221-2/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * bjorn/unicode-doc/OTP-10852: file: Document list_dir_all/1 and read_link_all/1 file: Remove note about Unicode handling being experimental filelib: Update documentation
| * | | filelib: Update documentationBjörn Gustavsson2013-02-141-2/+3
| | | |
* | | | Merge branch 'lukas/stdlib/binary_typespec'Lukas Larsson2013-02-211-1/+1
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | * lukas/stdlib/binary_typespec: bin_to_list can also take a negative len
| * | | bin_to_list can also take a negative lenLukas Larsson2013-02-211-1/+1
| | | |
* | | | Merge branch 'hb/stdlib/unicode_corrections/OTP-10820'Hans Bolinder2013-02-202-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | * hb/stdlib/unicode_corrections/OTP-10820: Use ~ts for filenames
| * | | | Use ~ts for filenamesHans Bolinder2013-02-192-2/+2
| | | | |
* | | | | Merge branch 'lukas/stdlib/binary_typespec'Lukas Larsson2013-02-191-1/+1
|\ \ \ \ \ | |/ / / / |/| / / / | |/ / / | | | | * lukas/stdlib/binary_typespec: Updated to fit spec of -type part()
| * | | Updated to fit spec of -type part()Lukas Larsson2013-02-181-1/+1
| | |/ | |/|
* | | Merge branch 'sverk/ets-test-failures'Sverker Eriksson2013-02-181-23/+93
|\ \ \ | |/ / |/| | | | | | | | * sverk/ets-test-failures: stdlib: Try fix fluctuating test cases in ets_SUITE
| * | stdlib: Try fix fluctuating test cases in ets_SUITESverker Eriksson2013-02-081-23/+93
| | | | | | | | | | | | | | | | | | | | | | | | by removing slave node creation and instead create remote pids, ports and refs synthetically using binary_to_term. Memory leak checks were sometimes failing due to mutating system ETS tables caused by slave node communication.
* | | [stdlib] Add documentation of ~tpHans Bolinder2013-02-151-2/+16
| | | | | | | | | | | | A short description of how ~tp works now.
* | | [stdlib] Correct handling of Unicode filenamesHans Bolinder2013-02-152-32/+45
| | |
* | | [stdlib] Add new SDTLIB application variable 'shell_strings'Hans Bolinder2013-02-155-18/+54
| | | | | | | | | | | | | | | Use the new function shell:strings/1 to toggle how the Erlang shell outputs lists of integers.
* | | [stdlib] Add control sequence modifier 'l'Hans Bolinder2013-02-155-116/+189
| | | | | | | | | | | | | | | The modifier 'l' can be used for turning off the string recognition of ~p and ~P.
* | | Merge branch 'lukas/erts/binary_conv_bifs/OTP-10300'Lukas Larsson2013-02-141-0/+7
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | * lukas/erts/binary_conv_bifs/OTP-10300: erts: Remove ?line macro from hash_SUITE Add float_to_binary and binary_to_float Add new binary conversion bifs
| * | Add float_to_binary and binary_to_floatLukas Larsson2013-02-141-0/+3
| | |
| * | Add new binary conversion bifsLukas Larsson2013-02-141-0/+4
| | | | | | | | | | | | Added: binary_to_integer/1,2, integer_to_binary/1,2
* | | Update deprecation message for gsBjörn Gustavsson2013-02-141-1/+1
| | | | | | | | | | | | Too late now to remove gs in R16.
* | | Merge branch 'bjorn/stdlib/filelib-wildcard/OTP-10812'Björn Gustavsson2013-02-142-131/+133
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bjorn/stdlib/filelib-wildcard/OTP-10812: Remove special case handling "-" at the beginning of a charset Optimize character sets using gb_sets Clean up and simplify the inner matching loop Only sort the result list once, just before returning Replace filename:join/2 with '++' Rethink the filelib:wildcard() functions Don't redefine error/1 Don't allow binaries as the Cwd argument for filelib:wildcard() Don't handle binaries from file:list_dir/1 Strengthen test suite
| * | | Remove special case handling "-" at the beginning of a charsetBjörn Gustavsson2013-02-131-2/+0
| | | | | | | | | | | | | | | | | | | | We don't need this special case, since "-" is only special between two other characters.
| * | | Optimize character sets using gb_setsBjörn Gustavsson2013-02-131-5/+2
| | | |
| * | | Clean up and simplify the inner matching loopBjörn Gustavsson2013-02-131-33/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use list comprehensions and 'orelse' to make the code more concise. Rename wildcard_5/2 to match_part/2 to make it clearer what it does. If the pattern always matches, don't test it in every iteration of the loop.
| * | | Only sort the result list once, just before returningBjörn Gustavsson2013-02-131-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | There does not seem to be any advantage of sorting the result of file:list_dir/1 directly. Disadvantages are that we'll need to be careful to keep the result sorted, and that we could waste time sorting filenames that the pattern matching will discard anyway.
| * | | Replace filename:join/2 with '++'Björn Gustavsson2013-02-131-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Under controlled circumstances (and we are in control of the circumstances), filename:join/2 can be replaced with '++'. '++' is faster because it is implmented in C, does not need to look at the list elements it copies, and does not need to copy its right operand.
| * | | Rethink the filelib:wildcard() functionsBjörn Gustavsson2013-02-131-69/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 70b5e24c9498225fadc08d19503269c8aad851bf broke filelib:wildcard(Pattern, "."). Over the years, the logic for filelib:wilcard() has become a mess of special cases. Probably because of premature optimization, filelib:wildcard(Pattern) and filelib:wildcard(Pattern, Cwd) are handled differently. They can be consolidated if we use a "." as the default Cwd argument. We can also simplify things by compiling the Cwd argument into the wildcard. We did not that in the initial implementation because it used to be possible to pre-compile a wildcard and pass it to filelib:wildcard/{1,2}. Since that is no longer possible, there is no point in keeping the compiled wildcard "portable" (not dependent on the Cwd argument).
| * | | Don't redefine error/1Björn Gustavsson2013-02-131-7/+4
| | | | | | | | | | | | | | | | | | | | It is confusing. Rename our own exception-generating function to badpattern/1.
| * | | Don't allow binaries as the Cwd argument for filelib:wildcard()Björn Gustavsson2013-02-132-5/+2
| | | | | | | | | | | | | | | | | | | | filelib:wildcard() will no longer support "raw filenames", so it makes no sense for it to accept a binary Cwd argument.
| * | | Don't handle binaries from file:list_dir/1Björn Gustavsson2013-02-131-7/+0
| | | | | | | | | | | | | | | | In R16B, file:list_dir/1 will never return binaries.
| * | | Strengthen test suiteBjörn Gustavsson2013-02-131-2/+35
| |/ /
* | | Merge branch 'bjorn/stdlib/types'Björn Gustavsson2013-02-142-32/+16
|\ \ \ | | | | | | | | | | | | | | | | | | | | * bjorn/stdlib/types: Make the file:filename() type more restrictive c: Remove handling of binaries in return from file:list_dir/1
| * | | Make the file:filename() type more restrictiveBjörn Gustavsson2013-02-131-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The recommended type for filenames is a list of characters (which may be Unicode characters greater than 255). Change the file:filename() to reflect that. For the filename module we still need a type that can be either a string or a binary, so we need to introduce the type file:filename_all().
| * | | c: Remove handling of binaries in return from file:list_dir/1Björn Gustavsson2013-02-121-18/+2
| |/ / | | | | | | | | | file:list_dir/1 will no longer return binaries.
* | | Extend ~ts to handle binaries with characters coded in ISO-latin-1Hans Bolinder2013-02-132-4/+29
|/ / | | | | | | | | | | | | | | Make sure io_lib:fwrite() with a format string including "~ts" does not crash when given binaries that cannot be interpreted as UTF-8-encoded strings. We want to avoid crashes caused by excessive use of the 't' modifier.
* | [stdlib] Fix a bug concerning pretty printing and UnicodeHans Bolinder2013-02-112-31/+39
| | | | | | | | Binaries were pretty printed too often.
* | Make Unicode correctionsHans Bolinder2013-02-113-11/+9
| |
* | Merge branch 'bjorn/remove-tuple-funs/OTP-10170'Björn Gustavsson2013-02-112-1/+10
|\ \ | | | | | | | | | | | | * bjorn/remove-tuple-funs/OTP-10170: erl_eval: Don't allow evaluation of {M,F} in the shell
| * | erl_eval: Don't allow evaluation of {M,F} in the shellBjörn Gustavsson2013-02-102-1/+10
| |/ | | | | | | | | Tuples funs were removed in de7e01c958ff7c9e6da4034a53567a30a4ae5792, but it was still possible to evaluate tuple funs in the shell.
* | [stdlib] Remove the undocumented 'unicode' option from the scannerHans Bolinder2013-02-102-271/+138
|/
* [stdlib] Fix a bug that could cause the Erlang shell to loopHans Bolinder2013-02-071-1/+3
|
* [stdlib] Fix bugs in eval_bitsHans Bolinder2013-02-072-9/+103
| | | | Unicode related.
* Merge branch 'bjorn/stdlib/erl_lint-coverage'Björn Gustavsson2013-02-062-23/+108
|\ | | | | | | | | | | | | | | | | | | | | | | | | * bjorn/stdlib/erl_lint-coverage: Test calling deprecated or removed functions Test deprecating list_to_atom/1 to cover more code Cover binary syntax errors and warnings Remove unused error message {bittype_mismatch,_,_,_} Remove unused error message for importing an auto-imported BIF Remove the error message for future reserved keyword Test a few more kinds of illegal guard expressions Remove error handling for calling a BIF that is not auto-imported Provoke basic semantic errors to improve test coverage
| * Test calling deprecated or removed functionsBjörn Gustavsson2013-01-311-2/+16
| |