[omniORB] omniNames's logdir with multibyte path name (Win32)

Duncan Grisby duncan at grisby.org
Mon Dec 29 19:27:52 GMT 2008


On Sunday 21 December, "Ando Noriaki" wrote:

[...]
> Our other user found that the problem does not appear if
> omniORB\src\appl\omniNames\log.cc
> was modified as follows.
> 
> around L405 in omniORB\src\appl\omniNames\log.cc
> -------------------------------------------
>   try {
>   #ifdef USE_STREAM_OPEN
> + #ifdef __WIN32__
> + setlocale(LC_ALL, "");
> + #endif
>   logf.OPEN(active,ios::out|ios::trunc,0666);
>   if (!logf)
>   throw IOError();
> -------------------------------------------
> 
> Setting locale before opening log file seems not to have side
> effects on both Windows and UNIX.  We would be very happy if this
> modification was taken into the omniORB source code repository.

Thanks. I've applied you patch, except that I moved it to always apply.
Where you had it it only worked when omniNames was running for the first
time.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omniORB-list mailing list