Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#7323 closed Bugs (invalid)

Boost.Locale not working with locales. Totally

Reported by: sunheretic13@… Owned by: Artyom Beilis
Milestone: To Be Determined Component: locale
Version: Boost 1.51.0 Severity: Problem
Keywords: locale Cc:

Description

Boost.Locale not working with locales (on Windows). This part of the library needs a remake.

I attach a sample program with display results. This is a small part that not working.

As you can see the boost locale not doing anything useful.

Attachments (2)

main.cpp (1.9 KB ) - added by sunheretic13@… 10 years ago.
sample program
Result.PNG (11.7 KB ) - added by sunheretic13@… 10 years ago.
Output result of program. Pessimistically

Download all attachments as: .zip

Change History (8)

by sunheretic13@…, 10 years ago

Attachment: main.cpp added

sample program

by sunheretic13@…, 10 years ago

Attachment: Result.PNG added

Output result of program. Pessimistically

comment:1 by Artyom Beilis, 10 years ago

Resolution: invalid
Status: newclosed

I can only answer RTFM...

Your "example" does nothing useful and you don't understand what Boost.Locale does and does not.

in reply to:  1 comment:2 by sunheretic13@…, 10 years ago

Replying to artyom:

I can only answer RTFM...

Your "example" does nothing useful and you don't understand what Boost.Locale does and does not.

I RTFM. Boost.Locale not perform their work. It's not collate. It's not correct displayed.

comment:3 by sunheretic13@…, 10 years ago

artyom,

Give me a working example for the COLLATE operation through bust.locale with Russian text.

You did not get it done.

comment:4 by Artyom Beilis, 10 years ago

http://www.boost.org/doc/libs/1_51_0/libs/locale/doc/html/collate_8cpp-example.html

Also I don't what what backend are you using and what compiler

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

I suggest compile Boost.Locale with ICU.

And read this: http://www.boost.org/doc/libs/1_51_0/libs/locale/doc/html/default_encoding_under_windows.html

And finally do not go with statements that "Nothing works" when you do not understand the basics.

comment:5 by sunheretic13@…, 10 years ago

Later I produce another example - bad work "to_upper" function (throw debugger, not console output, that may change result).

How do you explain to me this code -

generator gen; std::locale::global(gen("brainfuck"));

Why does this start? Where the generation of exceptions to the wrong locale?


I already read several weeks ago http://www.boost.org/doc/libs/1_51_0/libs/locale/doc/html/default_encoding_under_windows.html This does not me help. Changing Windows console to UTF-8 not help for me.

comment:6 by Artyom Beilis, 10 years ago

Bug tracker is not a forum...

If you struggle with Boost.Locale ask on Boost.Users mailing list.

Please stop posting comments.

This ticket is closed.

Note: See TracTickets for help on using tickets.