https://github.com/jljusten/edk2.git utf8-v2
v2: * Drop .utf8 extension. Use .uni file for UTF-8 data (mdkinney) The UTF-16 .uni files are fairly annoying to work with: * They must be checked in as 'binary' files * It is difficult to produce a diff of changes * UTF-8 is more likely to be supported by text editors This series allows .uni files to contain UTF-8 (or, as before, UTF-16) string data. If the UTF-16 BOM is found, then the file is read as UTF-16. Otherwise, it is treated as UTF-8. With some basic testing on Linux, it appears that UTF-8 works as expected with UTF-8 files. Both git and subversion diff output show unicode characters > 0xff as expected. Note, these changes only affect the source input for unicode string data. The output of string processing still always produces UTF-16LE character strings. This is required since UEFI only supports UTF-16LE string data. Jordan Justen (7): BaseTools: Support UTF-8 string data in .uni files BaseTools/Tests: Always add BaseTools source to import path BaseTools/EdkLogger: Support unit tests with a SILENT log level BaseTools/Tests: Add unit test for AutoGen.UniClassObject BaseTools/Tests: Verify 32-bit UTF-8 chars are rejected BaseTools/Tests: 32-bit unicode chars are allowed in comments OvmfPkg/PlatformDxe: Convert Platform.uni to UTF-8 BaseTools/Source/Python/AutoGen/UniClassObject.py | 38 +++++++- BaseTools/Source/Python/Common/EdkLogger.py | 9 +- BaseTools/Tests/CheckUnicodeSourceFiles.py | 103 ++++++++++++++++++++++ BaseTools/Tests/PythonToolsTests.py | 4 +- BaseTools/Tests/RunTests.py | 2 - BaseTools/Tests/TestTools.py | 9 +- OvmfPkg/PlatformDxe/Platform.uni | Bin 3298 -> 1648 bytes 7 files changed, 158 insertions(+), 7 deletions(-) create mode 100644 BaseTools/Tests/CheckUnicodeSourceFiles.py -- 2.1.4 ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel