Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Problem with LanguageInfo
Problem with LanguageInfo [message #52147] Mon, 29 July 2019 10:10 Go to next message
coolman is currently offline  coolman
Messages: 114
Registered: April 2006
Location: Czech Republic
Experienced Member
Hi,

I have a problem with LanguageInfo. I would like to use separators based on selectected language. But when I execute GetLanguageInfo().ToString() I got
LANGUAGE={EN-US}ENGLISH NAME={English}NATIVE NAME={English }THOUSAND SEPARATOR={}DECIMAL POINT={}MONTH NAMES={ {} / {} {} / {} {} / {} {} / {} {} / {} {} / {} {} / {} {} / {} {} / {} {} / {} {} / {} {} / {}}DAY NAMES={ {} / {} {} / {} {} / {} {} / {} {} / {} {} / {} {} / {}


There is also problem with Format fuction. When the language is set to SetLanguage(LNGC_('C', 'S', 'C', 'Z', CHARSET_UTF8)), Format("%Mon", 6) returns "Čer" but Format("%vl", 1234567.89) returns "12345670".

OS: Linux ul001602 4.18.0-25-generic #26~18.04.1-Ubuntu SMP Thu Jun 27 07:28:31 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Compiler: clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)

Test is attached (Message edited - test replaced).

Thanks for help, Radek

[Updated on: Mon, 29 July 2019 10:21]

Report message to a moderator

Re: Problem with LanguageInfo [message #52150 is a reply to message #52147] Mon, 29 July 2019 14:05 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Hopefully fixed (problem with locale name).

Mirek
Re: Problem with LanguageInfo [message #52151 is a reply to message #52150] Mon, 29 July 2019 14:18 Go to previous message
coolman is currently offline  coolman
Messages: 114
Registered: April 2006
Location: Czech Republic
Experienced Member
Thank you, now it works correctly.
Previous Topic: Inconsistency between Vector and Index
Next Topic: [SOLVED] Why long long int seems to be 32 bit longer?
Goto Forum:
  


Current Time: Thu Mar 28 22:22:00 CET 2024

Total time taken to generate the page: 0.01723 seconds