File: //usr/lib/python3/dist-packages/click/__pycache__/_unicodefun.cpython-310.pyc
o
�+ca� � @ s* d dl Z d dlZd dlmZ ddd�ZdS )� N)�gettext�returnc C s� zddl m} t�| � �j}W n ty d}Y nw |dkr!dS td�g}tjdkr�ddl}z|j ddg|j
|j
dd d
��� d }W n tyN d}Y nw t
� }d}|�� D ]}|�� }|�� �d
�rr|�|� |�� dv rrd}qX|s}|�td�� n|r�|�td�� |�d� n|�td�jd�t|��d�� d} tj�d�tj�d�fD ]}
|
r�|
�� �d
�r�|
} |
dur� nq�| dur�|�td�j| d�� td�|���)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)zc.utf8zc.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, )�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 �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