linux-cifs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steve French <smfrench@gmail.com>
To: "Edgar Olougouna" <edgaro@microsoft.com>,
	"Jeremy Allison" <jra@samba.org>,
	"Pavel Shilovsky" <piastryyy@gmail.com>,
	"Aurélien Aptel" <aaptel@suse.com>,
	"ronnie sahlberg" <ronniesahlberg@gmail.com>,
	CIFS <linux-cifs@vger.kernel.org>,
	samba-technical <samba-technical@lists.samba.org>
Subject: WSL and remapping of reserved characters to Unicode remap range
Date: Sat, 21 Sep 2019 02:44:20 -0700	[thread overview]
Message-ID: <CAH2r5mui+2q-DNW9a7-prRWt82ZLCc9hLBNsSQxNdVa=Go1QEg@mail.gmail.com> (raw)

Did some experiments today with files created by the Windows Subsystem
for Linux and noticed that they create files which have reserved
characters by using the SFU remap strategy not the default used by
Macs and Linux (the posix or "SFM" mapping)

But at least it means if you mount to a windows system which has run
the Windows Linux Subsystem you can simply do mount with mount option
"mapchars" and the file names should show up fine.

See example below (mounted to Windows directory created by WSL):

Virtual-Machine:~# ls /mnt/special-file-names
'dirwithtrailingspace '   filewith:colon         'filewith space'
'filewith*asterisk'      'filewith>greaterthan'   filewithtrailing.
 filewithbackslash       'filewith<lessthan'

--
Thanks,

Steve

                 reply	other threads:[~2019-09-21  9:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH2r5mui+2q-DNW9a7-prRWt82ZLCc9hLBNsSQxNdVa=Go1QEg@mail.gmail.com' \
    --to=smfrench@gmail.com \
    --cc=aaptel@suse.com \
    --cc=edgaro@microsoft.com \
    --cc=jra@samba.org \
    --cc=linux-cifs@vger.kernel.org \
    --cc=piastryyy@gmail.com \
    --cc=ronniesahlberg@gmail.com \
    --cc=samba-technical@lists.samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).