Skip to content

tool_util: add Unicode support to tool_execpath() - #23287

Closed
vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:w-execpath-unicode
Closed

vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:w-execpath-unicode

Conversation

@vszakats

@vszakats vszakats commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

To fix opening .curlrc/_curlrc next to the curl tool, and to make
the CA safe search built-time option find curl-ca-bundle.crt as
expected when the curl tool resides on a non-ASCII path when using
a Unicode-enabled build.

The CA safe search build-time option is disabled by default. The issue
has been discovered while working on enabling it by default.

Follow-up to d40f4e1
Follow-up to 78882e4

Cherry-picked from #23277


https://github.com/curl/curl/pull/23287/files?w=1

Tested on Win11 (with OS UTF-8 CP disabled).

@vszakats
vszakats marked this pull request as draft October 6, 2026 13:54
@vszakats vszakats added cmdline tool Windows Windows-specific labels Oct 6, 2026
@vszakats
vszakats marked this pull request as ready for review October 6, 2026 14:24
@vszakats
vszakats requested a lite review from Copilot October 6, 2026 14:33

This comment was marked as outdated.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

UTF-8 paths at the buffer limit can be rejected, breaking companion-file lookups.

Review effort: Lite
Findings: None

Resolved since last review (2)

@vszakats vszakats added the Unicode Unicode, code page, character encoding label Oct 6, 2026
To fix opening `.curlrc`/`_curlrc` next to the curl tool, and to make
the CA safe search built-time option work as expected when the curl tool
resides on a non-ASCII path.

Follow-up to d40f4e1
Follow-up to 78882e4

Cherry-picked from curl#23277
@vszakats
vszakats force-pushed the w-execpath-unicode branch from ec8f632 to 8a3b102 Compare October 6, 2026 17:51
@vszakats
vszakats force-pushed the w-execpath-unicode branch from 8a3b102 to 3d7bf62 Compare October 6, 2026 18:26
@vszakats vszakats closed this in 65685bf Oct 6, 2026
@vszakats
vszakats deleted the w-execpath-unicode branch October 6, 2026 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmdline tool Unicode Unicode, code page, character encoding Windows Windows-specific

Development

Successfully merging this pull request may close these issues.

2 participants