From: Andrej Gelenberg <andrej.gelenberg@udo.edu>
To: Krzysztof <kj@limes.com.pl>
Cc: linux-c-programming@vger.kernel.org
Subject: Re: Unicode or not?
Date: Mon, 05 Mar 2012 15:04:18 +0100 [thread overview]
Message-ID: <4F54C7E2.3000307@udo.edu> (raw)
In-Reply-To: <jj2b8n$uka$1@dough.gmane.org>
HI,
it's always char **, which encoding the arguments has, depends on system
locale (mostly LANG environment variable), but it must be always some
sort of multibyte encoding at most (like utf8). UCS 2 (UTF-16) would
break many existing programs.
http://stackoverflow.com/questions/1664476/is-it-possible-to-use-a-unicode-argv
and here, how to covert between utf8 and wchar:
http://www.ibm.com/developerworks/linux/library/l-linuni/index.html
On 03/05/2012 01:23 PM, Krzysztof wrote:
> Does it happen that command line which is passed to program arguments is
> "unicoded"? In other words, when should "main" be defined as "main(int
> argc, wchar_t **argv)"?
>
Regards,
Andrej Gelenberg
next prev parent reply other threads:[~2012-03-05 14:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-05 12:23 Unicode or not? Krzysztof
2012-03-05 14:04 ` Andrej Gelenberg [this message]
2012-03-05 20:19 ` Krzysztof
2012-03-05 20:52 ` Andrej Gelenberg
2012-03-05 19:57 ` Glynn Clements
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=4F54C7E2.3000307@udo.edu \
--to=andrej.gelenberg@udo.edu \
--cc=kj@limes.com.pl \
--cc=linux-c-programming@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.