On 31. 5. 2026 17:53, Daniel Sahlberg wrote:
Den sön 31 maj 2026 kl 16:05 skrev Branko Čibej <[email protected]>:

    On Sun, 31 May 2026, 15:01 Daniel Sahlberg,
    <[email protected]> wrote:

        Hi,

        Even if Apple are incorrectly deprecating sprintf() and even
        if we know that our string will fit in the allocated buffer...
        Is there a significant drawback of just using snprintf()?



    Yes, it's explained right there in the comment: apr_psprintf()
    ignores the locale, so the decimal separator isn't localised.


That's not quite what I meant. I saw the comment and I had no intention of using the apr_-functions.

If I understand Apple's motivation correct, they want to promote snprintf()[3] instead of sprintf()[2].


We can't use snprintf() because it's C99. Subversion is written in C90.

-- Brane

Reply via email to