o
Xai ã @ s, d dl Z d dlZdd„ Zdd„ Zdd„ ZdS )é Nc C sR t | tƒrt d| ¡S z| d¡} t d| ¡} | d¡} W | S ty( Y | S w )NZNFDúutf-8)Ú
isinstanceÚstrÚunicodedataÚ normalizeÚdecodeÚencodeÚUnicodeError)Úpath© r ú‘/builddir/build/BUILDROOT/alt-python310-setuptools-58.3.0-4.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/setuptools/unicode_utils.pyÚ decompose s
þþr
c C sR t | tƒr| S t ¡ pd}|df}|D ]}z| |¡W S ty& Y qw dS )zY
Ensure that the given path is decoded,
NONE when no expected encoding works
r N)r r ÚsysÚgetfilesystemencodingr ÚUnicodeDecodeError)r
Zfs_encÚ
candidatesÚencr r r Úfilesys_decode s
ÿýr c C s" z| |¡W S ty Y dS w )z/turn unicode encoding into a functional routineN)r ÚUnicodeEncodeError)Ústringr r r r Ú
try_encode% s
ÿr )r r r
r r r r r r Ú