Opened 6 years ago

Closed 6 years ago

#5592 closed Bugs (fixed)

Use CP_ACP not CP_THREAD_ACP [windows]

Reported by: Sam Morris <sam@…> Owned by: Beman Dawes
Milestone: To Be Determined Component: filesystem
Version: Boost 1.46.1 Severity: Problem
Keywords: Cc:


I've seen a few posts to boost-dev stating that it is wrong to use CP_THREAD_ACP when converting between 'ANSI' and wide filesystem paths. CP_ACP should be used as well.

The issue was raised by Yechezkel Mett in but received no response.

Two other users also chimed in in the discussion started at

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by Beman Dawes

Resolution: fixed
Status: newclosed

Applied changeset 76500, reverting to CP_ACP.

I'm ambivalent about this fix in that we don't have a test case that demonstrates it is correct. My definition of "correct" is that filesystem operational functions resolve paths exactly the same way that standard library file stream constructors/open resolve paths.

If someone could submit a test case, it would be much appreciated.


Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Beman Dawes.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.