<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:12:18 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CDRIVER-1368] libbson fprintf PRI specifiers for visual studio 2013</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-1368</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;Character string literals for the fprintf() and fwprintf() family of functions (PRIxxx) are declared differently in bson-compat.h and in inttypes.h.&lt;/p&gt;

&lt;p&gt;bson-compat.h&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;define PRIi32 &quot;d&quot;&lt;/li&gt;
	&lt;li&gt;define PRId32 &quot;d&quot;&lt;/li&gt;
	&lt;li&gt;define PRIu32 &quot;u&quot;&lt;/li&gt;
	&lt;li&gt;define PRIi64 &quot;I64i&quot;&lt;/li&gt;
	&lt;li&gt;define PRId64 &quot;I64i&quot;&lt;/li&gt;
	&lt;li&gt;define PRIu64 &quot;I64u&quot;&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;inttypes.h&lt;/p&gt;

&lt;p&gt;#define _PFX_8   &quot;hh&quot;&lt;br/&gt;
#define _PFX_16  &quot;h&quot;&lt;br/&gt;
#define _PFX_32  &quot;l&quot;&lt;br/&gt;
#define _PFX_64  &quot;ll&quot;&lt;/p&gt;

&lt;p&gt;#define PRIi32        _PFX_32 &quot;i&quot;&lt;br/&gt;
#define PRId32       _PFX_32 &quot;d&quot;&lt;br/&gt;
#define PRIu32       _PFX_32 &quot;u&quot;&lt;br/&gt;
#define PRIi64        _PFX_64 &quot;i&quot;&lt;br/&gt;
#define PRId64       _PFX_64 &quot;d&quot;&lt;br/&gt;
#define PRIu64       _PFX_64 &quot;u&quot;&lt;/p&gt;</description>
                <environment>Windows 64bit&lt;br/&gt;
Visual studio 2013</environment>
        <key id="299921">CDRIVER-1368</key>
            <summary>libbson fprintf PRI specifiers for visual studio 2013</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="jesse@mongodb.com">A. Jesse Jiryu Davis</assignee>
                                    <reporter username="Mansuro">Almansour Belleh Blanco [X]</reporter>
                        <labels>
                    </labels>
                <created>Mon, 11 Jul 2016 07:07:02 +0000</created>
                <updated>Sat, 24 Dec 2016 15:13:42 +0000</updated>
                            <resolved>Sat, 24 Dec 2016 15:12:30 +0000</resolved>
                                    <version>1.3.5</version>
                                    <fixVersion>1.6.0</fixVersion>
                                    <component>libbson</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1464869" author="jesse" created="Sat, 24 Dec 2016 15:12:30 +0000"  >&lt;p&gt;I believe this works as designed. MSVC supports format specifiers like &quot;%I64i&quot; since its early versions, whereas the specifiers like &quot;%lld&quot; are preferred for GCC and Clang. The &lt;a href=&quot;https://github.com/chemeris/msinttypes&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;msinttypes project&lt;/a&gt;, which has the same goal as our bson-compat.h for MSVC, also uses &quot;%I64i&quot; and similar macros, not &quot;%lld&quot;. And finally, if you search for &quot;PRId64&quot; on this Wikipedia page:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Printf_format_string&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://en.wikipedia.org/wiki/Printf_format_string&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;... it says that &quot;PRId64&quot; is typically equivalent to I64d on Windows, although there is no reference cited.&lt;/p&gt;

&lt;p&gt;Almansour is there a specific issue that our specifiers are causing? What unintended behavior do you observe?&lt;/p&gt;</comment>
                            <comment id="1320286" author="jesse" created="Mon, 11 Jul 2016 17:25:22 +0000"  >&lt;p&gt;Thanks for the report!&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrbsof:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1481">C Driver 2017 1 - Jan 20, 2017</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>