Opened 7 years ago

Closed 7 years ago

#11967 closed Feature Requests (wontfix)

Support default ansi encoding with winapi backed

Reported by: KindDragon Owned by: Artyom Beilis
Milestone: To Be Determined Component: locale
Version: Boost 1.61.0 Severity: Cosmetic
Keywords: Cc:

Description

Please suport ansi encoding for this scenario or at least throw exception

boost::locale::generator gen;
gen.use_ansi_encoding(true);
locale_ = gen("");

It is suprizing when you get UTF-8 in this situation

Change History (1)

comment:1 by Artyom Beilis, 7 years ago

Resolution: wontfix
Status: newclosed

See: http://www.boost.org/doc/libs/1_51_0/libs/locale/doc/html/default_encoding_under_windows.html

Not all backends support ANSI encoding - you can use std backend and it would work if compiler supports one,

also ANSI encoding is really not the way to do localization.

Note: See TracTickets for help on using tickets.