9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Russ Cox <rsc@swtch.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] ext2srv understands only 7bit ASCII file names?
Date: Thu, 13 Oct 2011 06:22:24 -0700	[thread overview]
Message-ID: <4e96e610.8449340a.64ab.ffffa465@mx.google.com> (raw)
In-Reply-To: <CAEaiYYwJXaF6JApbYXg5nGBuy2ArDBCbgPYW9cmNu176n4f1qQ@mail.gmail.com>

On Oct 13, 2011 at 07:16, slash wrote:
> I have some files on an external ext2 drive that have whitespace and
> umlauts (ä, ö) in them. trfs took care of the whitespace. But ext2srv
> presents umlauts as a question mark symbol (�) and won't let me access
> the file (error: file does not exist).
> 
> Where is the problem? These files show correctly in linux.

The names are probably encoded in latin-1, as dexen said.
One option is to change your Linux locale and rename all your files.
Another is to change ext2srv to interpret disk names as Latin-1
if given a flag (say, -1).  A third, and perhaps the easiest,
is to use trfs to translate between UTF-8 names and Latin-1 names.
I say perhaps because it is possible that the kernel will reject
the Latin-1 as being malformed UTF-8, but I think the odds are
good that it will just let it through.

Russ

      parent reply	other threads:[~2011-10-13 13:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-13 11:15 slash
2011-10-13 11:37 ` dexen deVries
2011-10-13 13:20   ` erik quanstrom
2011-10-13 14:28     ` slash
2011-10-13 15:20       ` Russ Cox
2011-10-13 15:25         ` slash.9fans
2011-10-13 15:30           ` erik quanstrom
2011-10-16 13:19             ` slash
2011-10-13 13:22 ` Russ Cox [this message]

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=4e96e610.8449340a.64ab.ffffa465@mx.google.com \
    --to=rsc@swtch.com \
    --cc=9fans@9fans.net \
    /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).