Merge topic 'file-strings-utf-16'

1f77a700 file: Teach STRINGS to support UTF-16 and UTF-32 encodings
This commit is contained in:
Brad King
2015-01-27 11:36:45 -05:00
committed by CMake Topic Stage
16 changed files with 99 additions and 4 deletions
+4 -1
View File
@@ -65,7 +65,10 @@ Parse a list of ASCII strings from ``<filename>`` and store it in
Consider only strings that match the given regular expression.
``ENCODING <encoding-type>``
Consider strings of a given encoding. "UTF-8" is currently supported.
Consider strings of a given encoding. Currently supported encodings are:
UTF-8, UTF-16LE, UTF-16BE, UTF-32LE, UTF-32BE. If the ENCODING option
is not provided and the file has a Byte Order Mark, the ENCODING option
will be defaulted to respect the Byte Order Mark.
For example, the code
+5
View File
@@ -0,0 +1,5 @@
file-strings-utf-16
-------------------
* The :command:`file(STRINGS)` now supports UTF-16LE, UTF-16BE,
UTF-32LE, UTF-32BE as ``ENCODING`` options.