
hi guys, I want to use boost::regex in Windows XP + VC6 to match Japanese . I want to know if I need to enable ICU when I compile boost_1_36_0. In my short test program, I did not enable icu and it still can mathch and replace Japanese. But I do not know it is always right. And if I want to match Japanese I mush enable ICU? Appreciate any help. Worldwind

On Mon, Dec 15, 2008 at 6:55 PM, wind world
I use Boost.Regexwith ICU. I use both VC2k3 and VC2k5, I do have VC6
installed but I do not know it if can build ICU or anything (been a
while since I have touched it), so I am assuming for the rest of this
post it does.
I 'think' (do not quote me on this) that it still supplies enough
Unicode functionality without ICU to 'work' in most cases. If you do
with to build with ICU, make sure the environment var HAVE_ICU=1 and
ICU_PATH=R:\SDKs\icu\icu or wherever your path is, where
ICU_PATH\include and ICU_PATH\lib are the appropriate directories.
You can also pass those directly to bjam as -sHAVE_ICU and so forth if
I remember correctly.
Do note, if you compile and use an ICU that is version 3 or newer
(which even now is pretty old), they build some libraries with
different names then what Boost expects, I *think* those are:

On Tue, Dec 16, 2008 at 3:05 AM, John Maddock
Uncertain, but when I built ICU-4.0 a couple of the library names are different then what the boost bjam build wants (this is with boost 1.36, 1.37, and trunk). A simple copy and rename gets boost working though, just a bit odd.

On Wed, Dec 17, 2008 at 3:15 AM, John Maddock
Those are the same library names that ICU built for me, but when I ran my Boost build bjam script (from trunk, about two weeks ago), that is certainly not the filenames it was looking for. I may get a chance this weekend to look at it and recompile it all to give it another try to verify if someone reminds me.
participants (3)
-
John Maddock
-
OvermindDL1
-
wind world