C++ Logo


Advanced search

Re: [SG16] Execution encoding and the execution environment on Windows systems

From: Thiago Macieira <thiago_at_[hidden]>
Date: Tue, 05 Jan 2021 10:46:57 -0300
On Tuesday, 5 January 2021 02:53:54 -03 Tom Honermann via SG16 wrote:
> 8. We *could* specify a new portable entry point (a new main()
> signature or an alternative to main()) that provides UTF-8 encoded
> command line arguments (presumably with substitution characters in
> place of non-transcodeable content).

Using an alternate entry point is already possible and resolves the command-
line problem: just use _wmain() and UTF-16. The pipe problem is not local to
the current process, but the *other* one, so it can't be fixed locally.

Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DPG Cloud Engineering

Received on 2021-01-05 07:47:05