curtin-dev team mailing list archive
-
curtin-dev team
-
Mailing list archive
-
Message #02813
Re: [Merge] ~ogayot/curtin:sfdisk-accept-utf8 into curtin:master
Diff comments:
> diff --git a/curtin/commands/block_meta_v2.py b/curtin/commands/block_meta_v2.py
> index ae0b058..7939ba1 100644
> --- a/curtin/commands/block_meta_v2.py
> +++ b/curtin/commands/block_meta_v2.py
> @@ -26,6 +26,12 @@ from curtin.storage_config import (
> from curtin.udev import udevadm_settle
>
>
> +def to_utf8_hex_notation(string: str) -> str:
> + ''' Convert a unicode string into a UTF-8 representation using the \\x
> + notation. '''
> + return ''.join([f'\\x{c:02x}' for c in bytearray(string, 'utf-8')])
Updated, thanks!
> +
> +
> @attr.s(auto_attribs=True)
> class PartTableEntry:
> # The order listed here matches the order sfdisk represents these fields
--
https://code.launchpad.net/~ogayot/curtin/+git/curtin/+merge/442225
Your team curtin developers is requested to review the proposed merge of ~ogayot/curtin:sfdisk-accept-utf8 into curtin:master.
References