C++ Logo


Advanced search

Subject: Re: Execution encoding and the execution environment on Windows systems
From: Thiago Macieira (thiago_at_[hidden])
Date: 2021-01-05 07:46:57

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

SG16 list run by sg16-owner@lists.isocpp.org