unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Kan-Ru Chen <kanru@kanru.info>
To: Martin Owens <doctormo@gmail.com>
Cc: Notmuch developer list <notmuch@notmuchmail.org>
Subject: Re: Unicode Paths
Date: Wed, 14 Sep 2011 12:38:12 +0800	[thread overview]
Message-ID: <8739fzwxfv.fsf@isil.kanru.info> (raw)
In-Reply-To: <1315972539.2201.11.camel@delen> (Martin Owens's message of "Tue,  13 Sep 2011 23:55:39 -0400")

Martin Owens <doctormo@gmail.com> writes:

> Hello Again,
>
> I notice in the lib code notmuch_database_open(),
> notmuch_database_create() these functions use const char *path for the
> directory path input. Is this unicode safe?
>
> The python bindings (and ctype docs) seem to suggest using something
> called 'wchar_t *' for accepting unicode but that's for C not C++.
>
> Is this something that should be patched?

I think as long as the path does not contain embedded null character
then it is safe. Most posix filesystem does not allow null character in
the filename so you cannot use UTF-16 or UTF-32 to encode the unicode
path.

-- 
Kanru

  reply	other threads:[~2011-09-14  4:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-14  3:55 Unicode Paths Martin Owens
2011-09-14  4:38 ` Kan-Ru Chen [this message]
2011-09-15 16:52   ` Martin Owens
2011-09-15 17:52 ` Austin Clements
2011-09-16 10:58   ` Sebastian Spaeth

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

  List information: https://notmuchmail.org/

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

  git send-email \
    --in-reply-to=8739fzwxfv.fsf@isil.kanru.info \
    --to=kanru@kanru.info \
    --cc=doctormo@gmail.com \
    --cc=notmuch@notmuchmail.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.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

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 read-only IMAP folder(s) and NNTP newsgroup(s).