B
Re ć @ s, d dl Z d dlZdd Zdd Zdd ZdS )é Nc C sT t | trt d| ”S y$| d”} t d| ”} | d”} W n tk
rN Y nX | S )NZNFDzutf-8)Ś
isinstanceŚstrŚunicodedataŚ normalizeŚdecodeŚencodeŚUnicodeError)Śpath© r
ś/builddir/build/BUILDROOT/alt-python37-setuptools-58.3.0-4.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/setuptools/unicode_utils.pyŚ decompose s
r c C sV t | tr| S t ” pd}|df}x.|D ]&}y
| |”S tk
rL w(Y q(X q(W dS )zY
Ensure that the given path is decoded,
NONE when no expected encoding works
zutf-8N)r r ŚsysŚgetfilesystemencodingr ŚUnicodeDecodeError)r Zfs_encŚ
candidatesŚencr
r
r Śfilesys_decode s
r c C s$ y
| |”S tk
r dS X dS )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 Ś