It matters because for example Windows just crashes if you specify invalid specifier, for example Linux supports %T but Windows does not, and if you specify in your c code or Tcl code %T, it will crash. Same with %j, Windows ignores it and corrupts stack, so i had to write wrapper around snprintf and replace %j which is ugly. Having universal sprintf function like it was before takes one problem away and adding new specifier is not that hard thqn trying to figure out portability issues and chasing them for hours.
Vasiljevic Zoran wrote: > On Dec 6, 2007, at 5:22 PM, Vlad Seryakov wrote: > >> It is also not supported on Windows as well, i had to hack and replace >> %j with %lld on the fly. >> I guess this is modern-Linux only vsnprintf additions. >> >> Is it worth switching back to internal DStringPrintf? It was working >> fine? > > So far: > > Solaris 2.8 - bad > Solaris 2.10 - OK > Linux - OK > Mac OSX 10.3+ - OK > > It seems that this is a later addition to Unix which I was > not aware of. If Windows does not have that either we must > somehow automate that over the config scripts... > > I believe replacing with DStringPrintf will not bring anything > as this is just the format specifier, so it does not matter > if you use snprintf or vsnprintf or whatever. > > > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > naviserver-devel mailing list > naviserver-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/naviserver-devel > ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel