Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys sys/disklabel_gpt.h: Fix description of name encoding.



details:   https://anonhg.NetBSD.org/src/rev/b3f5b584f645
branches:  trunk
changeset: 369706:b3f5b584f645
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Aug 28 13:50:50 2022 +0000

description:
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.

diffstat:

 sys/sys/disklabel_gpt.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r a6fd71f79670 -r b3f5b584f645 sys/sys/disklabel_gpt.h
--- a/sys/sys/disklabel_gpt.h   Sun Aug 28 12:59:50 2022 +0000
+++ b/sys/sys/disklabel_gpt.h   Sun Aug 28 13:50:50 2022 +0000
@@ -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
@@ -79,7 +79,7 @@
        uint64_t        ent_lba_start;  /* start of partition */
        uint64_t        ent_lba_end;    /* end of partition */
        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)



Home | Main Index | Thread Index | Old Index