Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost::Locale jam file seems to be outdated for ICU ver. 53.1
From: Shane Turner (shane.turner_at_[hidden])
Date: 2014-09-24 07:42:07


On 23/09/2014 5:34 PM, Caroline Beltran wrote:
I'm using Boost::Locale (and ICU) for the first time but I strongly believe that the jam file is referencing old ICU dll filenames.

Current ICU dlls:

icuucd53.dll
icudt53.dll
icuind53.dll
icuin53.dll

Relevant snippet from jam file (Boost 1.56):

searched-lib icuuc : : <toolset>msvc
                        <variant>debug
                        <name>icuucd
                        <search>$(ICU_PATH)/lib
                        <link>shared
                        <runtime-link>shared ;

To me it appears that the snippet above is referring to icuucd when it should be referring to icuucd53.

I've been trying really hard to get Boost::Locale going on my system. I updated all references to dlls and this is the result of the config test. As you can see, I am not linking with ICU (even though ICU was installed correctly and ICU test results were successful). I think that the jam file may need further changes. Please advise.

D:\boost_1_56_0\stage\lib>test_config
- Backends: std winapi
- Without iconv
- Environment
  LANG=
  LC_ALL=
  LC_CTYPE=
  TZ=
- C locale: English_United States.1252
- C++ locale: English_United States.1252
- Testing locales availability on the operation system:
                            locale C C++
                       en_US.UTF-8 No No
                   en_US.ISO8859-1 No No
        English_United States.1252 Yes Yes
                       he_IL.UTF-8 No No
                   he_IL.ISO8859-8 No No
                Hebrew_Israel.1255 Yes Yes
                       ru_RU.UTF-8 No No
               Russian_Russia.1251 Yes Yes
                       tr_TR.UTF-8 No No
               Turkish_Turkey.1254 Yes Yes
                       ja_JP.UTF-8 No No
                        ja_JP.SJIS No No
                Japanese_Japan.932 Yes Yes
- Testing timezone and time
  Local Time :%c=09/23/14 15:18:07; %Z=Central Daylight Time (Mexico); %z=Central Daylight Time (Mexico)
  Universal Time:%c=09/23/14 20:18:07; %Z=Central Standard Time (Mexico); %z=Central Standard Time (Mexico)
- Boost.Locale's locale: en_US.UTF-8
This doesn't exactly answer the question posed, but might be useful, or hopefully at least informative to someone.

Have you looked at http://www.boost.org/doc/libs/1_56_0/libs/locale/doc/html/using_localization_backends.html to see if you actually require the ICU back-end for your use case?

In the project that I support, I chose to to use the std backend since we simply required converting between a set of character encodings. You might be able to use the winapi or std backends and remove your dependency on ICU.

In my case, we compile with "boost.locale.icu=off boost.locale.posix=off" to disable the ICU backend and the POSIX backend (which is a subset of the std backend).

Sincerely,
Shane Turner
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This e-mail is intended only for the named recipient(s) and may contain information that is otherwise privileged, confidential and/or exempt from disclosure under applicable law. No waiver of privilege, confidence, or otherwise is intended by virtue of communication via the internet. Any unauthorized use, dissemination or copying is strictly prohibited. If you have received this e-mail in error, or are not the named as a recipient, please immediately notify the sender and destroy all copies of this e-mail. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net