[naviserver-devel] compat
Hi I'm running on a Solaris 2.8 and %jd is not known there: len = snprintf(buf, sizeof(buf), %jd:%ld, There are handful of files which contain those. Question is: what is %j doing? Why do we need it? - 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
Re: [naviserver-devel] compat
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? Vasiljevic Zoran wrote: Hi I'm running on a Solaris 2.8 and %jd is not known there: len = snprintf(buf, sizeof(buf), %jd:%ld, There are handful of files which contain those. Question is: what is %j doing? Why do we need it? - 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
Re: [naviserver-devel] compat
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
Re: [naviserver-devel] compat
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
Re: [naviserver-devel] compat
On Dec 6, 2007, at 5:41 PM, Vlad Seryakov wrote: 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. I buy that, but this is pretty difficult to maintain, right? I still do not know what this %j is good for... Perhaps drop that altogether? - 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
Re: [naviserver-devel] compat
I guess this is Stephen's call Vasiljevic Zoran wrote: On Dec 6, 2007, at 5:41 PM, Vlad Seryakov wrote: 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. I buy that, but this is pretty difficult to maintain, right? I still do not know what this %j is good for... Perhaps drop that altogether? - 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
Re: [naviserver-devel] compat
On Dec 6, 2007 5:07 PM, Vasiljevic Zoran [EMAIL PROTECTED] wrote: On Dec 6, 2007, at 6:05 PM, Vlad Seryakov wrote: I guess this is Stephen's call OK, Stephen, what should we do with this? At the moment I removed all those from my solaris-2.8 sandbox but this is not a real solution. So what is the purpose of %j and why do we need it? %jd is intmax_t, you can replace them with %lld and long long. - 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