From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5C4863858D20; Thu, 16 Nov 2023 13:41:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5C4863858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700142115; bh=Jbp8lqh2oEwbeEEHBHR0ANBmkU/P6HvrJpdQikd35BQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=GPK+M1r1l5hvxIFudf2D+B4GcdKs1RyKdjcfLMADDY12AaE7TA56dW90YUidJJxip In7zF3p9taHSw5muZucTZye/OCKe6c7s0Kp22LzeXf/xbwjethmkbmOcrwmWb+Hvj/ s7T44yxbYvghjgbYv0jyGFuH2lFOVcVEotIZ+kyA= From: "costas.argyris at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/108865] gcc on Windows fails with Unicode path to source file Date: Thu, 16 Nov 2023 13:41:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: driver X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: costas.argyris at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108865 --- Comment #42 from Costas Argyris --- Looks like what is being requested here is a windows-host-specific configuration option similar to the existing --disable-win32-registry, like= for example --disable-win32-utf8-manifest with its corresponding --enable-win32-utf8-manifest (default). win32-registry is handled in gcc/configure.ac https://gcc.gnu.org/git/?p=3Dgcc.git;a=3Dblob;f=3Dgcc/configure.ac;h=3Dd0ca= f820648e791272e91ac3eb14a62d034e8629;hb=3DHEAD#l2335 Then the question is what can be done in configure.ac to raise some sort of flag that can be picked up from gcc/config.host, which is where the utf8 resource objects get added. According to its own doc, config.host is inv= oked by configure, so it should be possible to pass a simple flag from configure= to config.host. Perhaps setting a shell variable that can be checked inside config.host, like ${ENABLE_WIN32_UTF8_MANIFEST}, and pull in the utf-8 files only if that is true.=