o
    ­+ca  ã                   @   s*   d dl Z d dlZd dlmZ ddd„ZdS )é    N)ÚgettextÚreturnc                  C   s¨  zddl m}  t | ƒ ¡j}W n ty   d}Y nw |dkr!dS tdƒg}tjdkrÍddl}z|j	ddg|j
|j
dd	d
 ¡ d }W n tyN   d}Y nw tƒ }d}| ¡ D ]}| ¡ }| ¡  d¡rr| |¡ | ¡ dv rrd}qX|s}| tdƒ¡ n|rŒ| tdƒ¡ | d¡ n| tdƒjd t|ƒ¡d¡ d}	tj d¡tj d¡fD ]}
|
r·|
 ¡  d¡r·|
}	|
dur½ nqª|	durÍ| tdƒj|	d¡ td |¡ƒ‚)z1Ensures that the environment is good for Unicode.r   )ÚgetpreferredencodingÚasciiNz¿Click will abort further execution because Python was configured to use ASCII as encoding for the environment. Consult https://click.palletsprojects.com/unicode-support/ for mitigation steps.ÚposixÚlocalez-aÚreplace)ÚstdoutÚstderrÚencodingÚerrorsÚ F)z.utf-8z.utf8)zc.utf8zc.utf-8Tz™Additional information: on this system no suitable UTF-8 locales were discovered. This most likely requires resolving by reconfiguring the locale system.z—This system supports the C.UTF-8 locale which is recommended. You might be able to resolve your issue by exporting the following environment variables:z1    export LC_ALL=C.UTF-8
    export LANG=C.UTF-8zThis system lists some UTF-8 supporting locales that you can pick from. The following suitable locales were discovered: {locales}z, )ZlocalesÚLC_ALLÚLANGz·Click discovered that you exported a UTF-8 locale but the locale system could not pick up from it because it does not exist. The exported locale is {locale!r} but it is not supported.)r   z

)r   r   ÚcodecsÚlookupÚnameÚ	ExceptionÚ_ÚosÚ
subprocessÚPopenÚPIPEZcommunicateÚOSErrorÚsetÚ
splitlinesÚstripÚlowerÚendswithÚaddÚappendÚformatÚjoinÚsortedÚenvironÚgetÚRuntimeError)r   Zfs_encZextrar   ZrvZgood_localesZ
has_c_utf8Úliner   Z
bad_localeZ
env_locale© r(   ú3/usr/lib/python3/dist-packages/click/_unicodefun.pyÚ_verify_python_env   s   ÿÿÿ
	ûúÿ
€ÿÿÿÿÿüÿÿÿûÿ	r*   )r   N)r   r   r   r   r*   r(   r(   r(   r)   Ú<module>   s    