Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-byte file names will be broken. #118

Closed
sumihiro opened this issue Apr 28, 2021 · 1 comment
Closed

Multi-byte file names will be broken. #118

sumihiro opened this issue Apr 28, 2021 · 1 comment

Comments

@sumihiro
Copy link

sumihiro commented Apr 28, 2021

In a Docker environment using sail, multi-byte file names are broken.

I have placed files named ascii_file_name.pdf and 日本語のファイル名.pdf.
When I run the ls command after getting into Docker using sail, the file name of 日本語のファイル名.pdf is broken.

I have attached a screenshot of the actual corruption.

How can I resolve this issue?

sail

@sumihiro
Copy link
Author

I added the locale setting to vendor/laravel/sail/runtimes/8.0/Dockerfile and the file name is no longer broken.

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

+ RUN apt-get update
+ RUN apt-get install -y locales
+ 
+ RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
+     locale-gen en_US.UTF-8 && \
+     dpkg-reconfigure locales && \
+     /usr/sbin/update-locale LANG=en_US.UTF-8
+ 
+ ENV LC_ALL en_US.UTF-8

RUN apt-get update \

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant