Update application name handling to support UTF-8 in version 2 and remove ICU dependency

This commit is contained in:
2025-10-11 01:26:17 +01:00
parent 756d965e2a
commit 2e11b05547
5 changed files with 28 additions and 129 deletions

View File

@@ -54,7 +54,7 @@ typedef struct AaruHeaderV2
|===
| Name | Type | Description
| identifier | uint64_t | Header identifier constant. Must match the predefined `AARU_MAGIC` value to validate the format.
| application | uint8_t[HEADER_APP_NAME_LEN] | UTF-16LE encoded name of the application responsible for creating the image.
| application | uint8_t[HEADER_APP_NAME_LEN] | UTF-16LE in version 1, UTF-8 in version 2, encoded name of the application responsible for creating the image.
Length is defined by `HEADER_APP_NAME_LEN`.
| imageMajorVersion | uint8_t | Major version of the AaruFormat structure.