diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-10-13 11:23:52 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2018-10-13 11:23:52 +0200 |
commit | be2ddc6b6575da0b8e7ed235464f7e23c71674c7 (patch) | |
tree | 5874fbbbc1fa30e04b9fc823912bce0ceea92389 /ext/mbstring/tests | |
parent | 272c629c0a1efff2a6a7c53af8f1632d2bcef252 (diff) | |
download | php-git-be2ddc6b6575da0b8e7ed235464f7e23c71674c7.tar.gz |
Convert CRLF line endings to LF
This patch simplifies line endings tracked in the Git repository and
syncs them to all include the LF style instead of the CRLF files.
Newline characters:
- LF (\n) (*nix and Mac)
- CRLF (\r\n) (Windows)
- CR (\r) (old Mac, obsolete)
To see which line endings are in the index and in the working copy the
following command can be used:
`git ls-files --eol`
Git additionally provides `.gitattributes` file to specify if some files
need to have specific line endings on all platforms (either CRLF or LF).
Changed files shouldn't cause issues on modern Windows platforms because
also Git can do output conversion is core.autocrlf=true is set on
Windows and use CRLF newlines in all files in the working tree.
Unless CRLF files are tracked specifically, Git by default tracks all
files in the index using LF newlines.
Diffstat (limited to 'ext/mbstring/tests')
-rw-r--r-- | ext/mbstring/tests/bug75944.phpt | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/ext/mbstring/tests/bug75944.phpt b/ext/mbstring/tests/bug75944.phpt index 81788d7196..cb66d4e230 100644 --- a/ext/mbstring/tests/bug75944.phpt +++ b/ext/mbstring/tests/bug75944.phpt @@ -1,13 +1,13 @@ ---TEST--
-Bug #75944 (wrong detection cp1251 encoding because of missing last cyrillic letter)
---SKIPIF--
-<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
---FILE--
-<?php
-var_dump(mb_detect_encoding(chr(0xfe), array('CP-1251'))); // letter '?'
-var_dump(mb_detect_encoding(chr(0xff), array('CP-1251'))); // letter '?'
-?>
---EXPECT--
-string(12) "Windows-1251"
-string(12) "Windows-1251"
-
+--TEST-- +Bug #75944 (wrong detection cp1251 encoding because of missing last cyrillic letter) +--SKIPIF-- +<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?> +--FILE-- +<?php +var_dump(mb_detect_encoding(chr(0xfe), array('CP-1251'))); // letter '?' +var_dump(mb_detect_encoding(chr(0xff), array('CP-1251'))); // letter '?' +?> +--EXPECT-- +string(12) "Windows-1251" +string(12) "Windows-1251" + |