Doc #80325 [Opn->Ver]: contradictory definitions with endian-ness
| From: | requinix@php.net | Date: | Thu, 05 Nov 2020 23:24:05 +0000 |
| Subject: | Doc #80325 [Opn->Ver]: contradictory definitions with endian-ness | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-18097@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80325&edit=1
ID: 80325
Updated by: requinix@php.net
Reported by: nedelcescuradu at gmail dot com
-Summary: contradictory definition
+Summary: contradictory definitions with endian-ness
-Status: Open
+Status: Verified
Type: Documentation Problem
-Package: Documentation problem
+Package: mbstring related
Operating System: -
PHP Version: 7.4.12
Block user comment: N
Private report: N
New Comment:
I only just did a cursory reading of the source, but in the case of UCS-2, what the table needs to
say is:
* "UCS-2" comes with byte-order detection
* "ISO-10646-UCS-2" and "UCS2" (and "UNICODE") are aliases for
"UCS-2"
* "UCS-2BE" is always big-endian
* "UCS-2LE" is always little-endian
The whole table on that page is just screwy.
Previous Comments:
------------------------------------------------------------------------
[2020-11-05 23:17:30] nedelcescuradu at gmail dot com
Description:
------------
---
From manual page: https://php.net/mbstring.encodings
---
Quote:
ISO-10646-UCS-2 UCS-2 In contrast to UCS-2, strings are always assumed to be in BIG endian form.
ISO-10646-UCS-2 UCS-2 In contrast to UCS-2, strings are always assumed to be in LITTLE endian form.
ISO-10646-UCS-2 has 3 definitions, different one from another
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80325&edit=1