a
    �¥»a�  ã                   @   s.   d dl Z d dlZd dlmZ ddœdd„ZdS )é    N)Úgettext)Úreturnc                  C   s¼  zddl m}  t | ƒ ¡j}W n ty4   d}Y n0 |dkrBd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yž   d}Y n0 tƒ }d}| ¡ D ]4}| ¡ }| ¡  d¡r²| |¡ | ¡ dv r²d}q²|sü| tdƒ¡ n@|�r| tdƒ¡ | d¡ n | tdƒjd t|ƒ¡d�¡ d}	tj d¡tj d¡fD ]0}
|
�rv|
 ¡  d¡�rv|
}	|
du�rX �qŠ�qX|	du�rª| tdƒj|	d�¡ td |¡ƒ‚dS )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-8z�This 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ÚPIPEÚcommunicateÚOSErrorÚsetÚ
splitlinesÚstripÚlowerÚendswithÚaddÚappendÚformatÚjoinÚsortedÚenvironÚgetÚRuntimeError)r   Zfs_encÚextrar   ÚrvZgood_localesZ
has_c_utf8Úliner   Z
bad_localeZ
env_locale© r+   úK/home/yuhw/wc/pochoir/venv/lib/python3.9/site-packages/click/_unicodefun.pyÚ_verify_python_env   sˆ    
ÿÿ	ûú

ÿÿÿÿÿüÿ


ÿûÿ	r-   )r   r   r   r   r-   r+   r+   r+   r,   Ú<module>   s   