mirror of
https://gitlab.com/bztsrc/posix-uefi.git
synced 2025-01-01 03:25:52 +01:00
Added UTF-8 support
This commit is contained in:
parent
45a5fce4fc
commit
224a9ca6eb
1 changed files with 2 additions and 10 deletions
12
README.md
12
README.md
|
@ -62,16 +62,8 @@ By default it uses Clang + lld, and PE is generated without conversion. If `USE_
|
||||||
used to create a shared object and get converted into an .efi file.
|
used to create a shared object and get converted into an .efi file.
|
||||||
|
|
||||||
If you comment out `USE_UTF8` in uefi.h, then all character representation will use `wchar_t`, and there will be no string
|
If you comment out `USE_UTF8` in uefi.h, then all character representation will use `wchar_t`, and there will be no string
|
||||||
conversion between your application and the UEFI interfaces. This also means you must use `L""` and `L''` literals everywhere:
|
conversion between your application and the UEFI interfaces. This also means you must use `L""` and `L''` literals everywhere,
|
||||||
```c
|
and you main would receive `wchar_t **argv`.
|
||||||
#include <uefi.h>
|
|
||||||
|
|
||||||
int main(int argc, wchar_t **argv)
|
|
||||||
{
|
|
||||||
printf(L"Hello World!\n");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### Available Makefile Options
|
### Available Makefile Options
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue