for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Files in host volume that have special characters filenames, have the filename translated to ?'s in Linux container

Open immanuelnoel opened this issue 9 years ago • 7 comments

Files in host (Windows) volume that have special characters filenames, have the filename translated to ?'s in Linux container

Repro:

  1. Run a Linux container, eg, ubuntu, and mount the volume in Windows host
  2. Place filename with test-öäü.txt in mounted volume and try view the same on the Linux container

Expected behavior

Filename converted to test-??????.txt

Actual behavior

Filename must be test-öäü.txt

Information

Windows 10 Host

immanuelnoel avatar Aug 08 '17 05:08 immanuelnoel

Hi @immanuelnoel Can you please share the commands you were using, along with a diagnostic ID? I'd like to make sure I'm reproducing this the same way you are.

jasonbivins avatar Aug 08 '17 15:08 jasonbivins

This is most like a samba issue: https://serverfault.com/a/124630/275

Idk if we can tweak the SMB parameters

friism avatar Aug 08 '17 16:08 friism

I played around with this a bit more - Windows just doesn't like those characters.

C:\Mount>echo text text including tt-öäüt-öäüt-öäüt-öäü > test.txt C:\Mount>type test.txt text text including tt-öäüt-öäüt-öäüt-öäü

I'm even struggling with those characters here in the webform - I couldn't insert the above lines with any formatting. When i double click test.txt it looks like this image

jasonbivins avatar Aug 08 '17 19:08 jasonbivins

I just wanted to confirm that I have exactly the same issue with docker on Windows 10.

Steps to reproduce:

  • Create an empty text file with non-ASCII characters, e.g. the mentioned test-öäü.txt at C:\docker_filename-issue.
  • Run a container with a shared drive mounted to C:\docker_filename-issue and execute ls. Output on my system:
PS C:\Users> docker run -it -v c:/docker_filename-issue:/docker_filename-issue ubuntu
root@346afa6dd6bc:/# cd docker_filename-issue/
root@346afa6dd6bc:/docker_filename-issue# ls
test-??????.txt
root@346afa6dd6bc:/docker_filename-issue# exit
exit
PS C:\Users> docker -v
Docker version 17.06.0-ce, build 02c1d87

JanSellner avatar Aug 21 '17 15:08 JanSellner

I cannot reproduce this with Version 18.03.0-ce-rc1-win54 (16164) on Windows 10 Pro RS3 (build number 16299):

PS C:\test> New-Item  -Path test-öäü.txt


    Directory: C:\test


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a----       12/03/2018     17:19              0 test-öäü.txt


PS C:\test> docker run --rm -v  C:\test:/test alpine ls -al /test
total 4
drwxr-xr-x    2 root     root             0 Mar 12 17:19 .
drwxr-xr-x    1 root     root          4096 Mar 12 17:19 ..
-rwxr-xr-x    1 root     root             0 Mar 12 17:19 test-öäü.txt
PS C:\test>

Since this issue is quite old, I'm also closing it. Please re-open if it is not fixed for you

rn avatar Mar 12 '18 17:03 rn

@rn Thanks for testing this. If I use your steps, I get the same output as you. However, executing my own steps from above, the issue still exists. I tested with Docker version 18.03.0-ce-rc1, build c160c73 on Windows 10 version 1709 (build number 16299.248).

I think the difference is that in your approach you output the result of the container directly and in my approach I first bash inside the container and generate the output from there. But I don't know why this is a problem.

EDIT: issue is solved. Turns out this is simple a locale problem.

JanSellner avatar Mar 13 '18 18:03 JanSellner

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked

docker-robott avatar Jun 23 '20 03:06 docker-robott