sys/disklabel_gpt.h: Fix description of name encoding.

The encoding is UCS-2 from Unicode 2.1 or ISO/IEC 10646.  This is not
to be confused with UTF-16, which encodes code points outside the BMP
(Basic Multilingual Plane, ~16-bit space) with pairs of surrogate
code points.
This commit is contained in:
riastradh 2022-08-28 13:50:50 +00:00
parent 195a321f00
commit dfd4740c90
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: disklabel_gpt.h,v 1.14 2020/05/18 05:47:54 msaitoh Exp $ */ /* $NetBSD: disklabel_gpt.h,v 1.15 2022/08/28 13:50:50 riastradh Exp $ */
/* /*
* Copyright (c) 2002 Marcel Moolenaar * Copyright (c) 2002 Marcel Moolenaar
@ -79,7 +79,7 @@ struct gpt_ent {
uint64_t ent_lba_start; /* start of partition */ uint64_t ent_lba_start; /* start of partition */
uint64_t ent_lba_end; /* end of partition */ uint64_t ent_lba_end; /* end of partition */
uint64_t ent_attr; /* partition attributes */ uint64_t ent_attr; /* partition attributes */
uint16_t ent_name[36]; /* partition name in UNICODE-16 */ uint16_t ent_name[36]; /* partition name in UCS-2 */
}; };
#define GPT_ENT_ATTR_REQUIRED_PARTITION (1ULL << 0) #define GPT_ENT_ATTR_REQUIRED_PARTITION (1ULL << 0)