Marc Herbert wrote:
Hi,
Ian Holsman <[EMAIL PROTECTED]> writes:
I am trying to get carob running on my mac,
Thanks a lot for your time and expertise, much appreciated.
and have had the following issues:
- gnu's c++ locale only works when you use glibc, (which OS/X doesn't,
but default it uses UTF8)
The latter point is good news, cause we try to avoid reinventing the
wheel and having our own UTF8 code. So I'd like to commit a simple
#ifdef __APPLE__ && __MACH__ -based solution for this issue,
but I need to know this: when you say "default", do you mean:
std::locale loc("C"); (= locale::classic())
or:
std::locale loc("");
I would choose the latter, but your patch uses the former, which
should be OK _only_ with pure-ASCII data according to the books. But
maybe that's where MacOSX differs? Does it have some LANG/LC_ env
system too? Any reference appreciated.
I am defiantly not a locale expert.. I was just trying to get it so it
can run first. ;-)
yes.. it uses LANG/LC_ stuff like regular BSD box. but from what I
remember it uses UTF8 by default. you should be able to reproduce my
issue on a regular FreeBSD box I'm guessing...
- MSG_NOSIGNAL doesn't exist on OS/X. so I am replacing the signal
handler instead.
It looks like this flag is not portable indeed, so we are currently
looking for alternative solutions. If anyone has a clue...
Giles mentioned setting SO_NOSIGPIPE via setsockopt which might work
universally.
here is the diff so far...
it doesn't pass all the tests, but the 'read_example' runs.
Could you please report about the tests that fail? (besides the one
below) Thanks a lot in advance.
for carob that is the only one.
for libmysequoia I see
$ ./runTests
...ERROR: (Connection::initConnection) Could not authentify to
Helios.local:25322. Error while sending database name
((JavaSocket::WriteInt32): could not write Int32 to socket)
F.ERROR: (Connection::initConnection) Could not authentify to
Helios.local:25322. Error while sending database name
((JavaSocket::WriteInt32): could not write Int32 to socket)
ERROR: (Connection::initConnection) Could not authentify to
Helios.local:25322. Error while sending database name
((JavaSocket::WriteInt32): could not write Int32 to socket)
..ERROR: (Connection::initConnection) Could not authentify to
Helios.local:25322. Error while sending database name
((JavaSocket::WriteInt32): could not write Int32 to socket)
F.ERROR: (Connection::initConnection) Could not authentify to
Helios.local:25322. Error while sending database name
((JavaSocket::WriteInt32): could not write Int32 to socket)
F.ERROR: (Connection::initConnection) Could not authentify to
Helios.local:25322. Error while sending database name
((JavaSocket::WriteInt32): could not write Int32 to socket)
F.ERROR: (Connection::initConnection) Could not authentify to
Helios.local:25322. Error while sending database name
((JavaSocket::WriteInt32): could not write Int32 to socket)
F.F.F.F.F.F.ERROR: (Connection::initConnection) Could not
authentify to Helios.local:25322. Error while sending database name
((JavaSocket::WriteInt32): could not write Int32 to socket)
F.F.F.
BTW.. I upgraded to java 1.5.x on my box last night and It seems like
nothing is working as well anymore (and I am getting that error with the
read_example program too)
the output of carobTestLauncher is
1) test: encode_decode (E)
uncaught exception of unknown type
(and I disabled the locale test, as it won't work without glibc's locale)
Agreed.
_______________________________________________
Carob mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob