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rd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asciiNzClick 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-8TzAdditional information: on this system no suitable UTF-8 locales were discovered. This most likely requires resolving by reconfiguring the locale system.zThis 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, )localesLC_ALLLANGzClick 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   fs_encextrar   rvgood_locales
has_c_utf8liner   
bad_locale
env_locale r1   3/usr/lib/python3/dist-packages/click/_unicodefun.py_verify_python_env   s   
	
	r3   )r   N)r   r   r   r   r3   r1   r1   r1   r2   <module>   s    