<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:07:54 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>[SERVER-5099] Non-ASCII text on the command line isn&apos;t handled well in Windows</title>
                <link>https://jira.mongodb.org/browse/SERVER-5099</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Any text characters above 0x7F entered on the command line for mongod.exe, mongos.exe, mongo.exe and the other programs in the suite are not necessarily being handled correctly in Windows.  Although we build the Windows versions with UNICODE and _UNICODE defined, the entry point we declare is main() and this gets us text in the 8-bit code page of the invoking command window.  We would need to change the entry point to wmain() to get a wide-character UTF-16 string, and this would then require using a wide version of boost::program_options to parse the 16-bit characters.  The misbehavior that is seen will depend on the code page of the invoking command window.  In US English versions of Windows, you get the DOS-compatible code page 437 if you haven&apos;t changed your configuration.  In Western European versions of Windows you may get code page 1252 which is the same as ISO Latin 1 and so the same as Unicode for characters up to 0xFF.  Beyond these issues, there may be instances where data isn&apos;t handled correctly: I found and am fixing a few I found in the Windows Service code.  We were getting sign-extension of characters between 0x80 and 0xFF, which turned 0xE1 (&quot;LATIN SMALL LETTER A WITH ACUTE&quot;, &apos;&#225;&apos;) into U+FFE1 (displays as &quot;FULLWIDTH POUND SIGN&quot;, &apos;&#65505;&apos;).&lt;/p&gt;

&lt;p&gt;This may not be an issue for some users (US-only, or European/UK users using code page 1252) but the issue is likely to pop up repeatedly until we make the code fully Unicode-capable.&lt;/p&gt;</description>
                <environment>Windows command line with text that isn&amp;#39;t completely US-ASCII</environment>
        <key id="31574">SERVER-5099</key>
            <summary>Non-ASCII text on the command line isn&apos;t handled well in Windows</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</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="-1">Unassigned</assignee>
                                    <reporter username="tad">Tad Marshall</reporter>
                        <labels>
                            <label>Windows</label>
                    </labels>
                <created>Sun, 26 Feb 2012 00:09:01 +0000</created>
                <updated>Mon, 11 Jul 2016 18:33:33 +0000</updated>
                            <resolved>Sat, 16 Mar 2013 19:47:00 +0000</resolved>
                                                    <fixVersion>2.5.0</fixVersion>
                                                        <votes>1</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="291002" author="auto" created="Sat, 16 Mar 2013 19:33:00 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-03-16T16:51:04Z&apos;, u&apos;name&apos;: u&apos;Tad Marshall&apos;, u&apos;email&apos;: u&apos;tad@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5099&quot; title=&quot;Non-ASCII text on the command line isn&amp;#39;t handled well in Windows&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5099&quot;&gt;&lt;del&gt;SERVER-5099&lt;/del&gt;&lt;/a&gt; Convert Unicode text on Windows command line for all tools&lt;/p&gt;

&lt;p&gt;For the Windows version of mongobridge, bsondump, docgenerator, mongodump,&lt;br/&gt;
mongoexport, mongofiles, mongoimport, loadgenerator, mongooplog,&lt;br/&gt;
mongorestore, mongosniff, mongostat, and mongotop, switch to a Unicode&lt;br/&gt;
&quot;wmain()&quot; entry point and convert Unicode characters on the command line&lt;br/&gt;
to UTF-8.  Move previous main() to a new toolMain() routine so it can be&lt;br/&gt;
called from both main() and wmain().  Clean up headers.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/122657d540114a0d31e07da6fec50f7a1b35936a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/122657d540114a0d31e07da6fec50f7a1b35936a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="290046" author="auto" created="Fri, 15 Mar 2013 12:59:49 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-03-15T06:55:57Z&apos;, u&apos;name&apos;: u&apos;Tad Marshall&apos;, u&apos;email&apos;: u&apos;tad@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5099&quot; title=&quot;Non-ASCII text on the command line isn&amp;#39;t handled well in Windows&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5099&quot;&gt;&lt;del&gt;SERVER-5099&lt;/del&gt;&lt;/a&gt; Convert Unicode text on Windows command line for test.exe&lt;/p&gt;

&lt;p&gt;For the Windows version of test, switch to a Unicode &quot;wmain()&quot; entry&lt;br/&gt;
point and convert Unicode characters on the command line to UTF-8.  Move&lt;br/&gt;
previous main() to a new dbtestsMain() routine so it can be called from&lt;br/&gt;
both main() and wmain().&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/dfb307e5716ad789cc2146048853d3a45077056b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/dfb307e5716ad789cc2146048853d3a45077056b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="290043" author="auto" created="Fri, 15 Mar 2013 12:57:03 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-03-14T20:58:56Z&apos;, u&apos;name&apos;: u&apos;Tad Marshall&apos;, u&apos;email&apos;: u&apos;tad@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5099&quot; title=&quot;Non-ASCII text on the command line isn&amp;#39;t handled well in Windows&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5099&quot;&gt;&lt;del&gt;SERVER-5099&lt;/del&gt;&lt;/a&gt; Convert Unicode text on Windows command line for mongos.exe&lt;/p&gt;

&lt;p&gt;For the Windows version of mongos, switch to a Unicode &quot;wmain()&quot; entry&lt;br/&gt;
point and convert Unicode characters on the command line to UTF-8.  Move&lt;br/&gt;
previous main() to a new mongoSMain() routine so it can be called from&lt;br/&gt;
both main() and wmain().  Clean up header list.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/bb9594f5ab9400d0c72b400a9f7f4e598526cece&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/bb9594f5ab9400d0c72b400a9f7f4e598526cece&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="289075" author="auto" created="Thu, 14 Mar 2013 14:17:15 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-03-13T19:13:04Z&apos;, u&apos;name&apos;: u&apos;Tad Marshall&apos;, u&apos;email&apos;: u&apos;tad@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5099&quot; title=&quot;Non-ASCII text on the command line isn&amp;#39;t handled well in Windows&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5099&quot;&gt;&lt;del&gt;SERVER-5099&lt;/del&gt;&lt;/a&gt; Convert Unicode text on Windows command line for mongod.exe&lt;/p&gt;

&lt;p&gt;For the Windows version of mongod, switch to a Unicode &quot;wmain()&quot; entry&lt;br/&gt;
point and convert Unicode characters on the command line to UTF-8.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/2b2b5aa8f61c48719331ce3c2c3568d250964b46&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/2b2b5aa8f61c48719331ce3c2c3568d250964b46&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="288388" author="auto" created="Wed, 13 Mar 2013 19:04:07 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-03-13T16:52:49Z&apos;, u&apos;name&apos;: u&apos;Tad Marshall&apos;, u&apos;email&apos;: u&apos;tad@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5099&quot; title=&quot;Non-ASCII text on the command line isn&amp;#39;t handled well in Windows&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5099&quot;&gt;&lt;del&gt;SERVER-5099&lt;/del&gt;&lt;/a&gt; Fix 32-bit signed/unsigned warnings&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/fd5c1b3925f09937855e8a19130853281acecabb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/fd5c1b3925f09937855e8a19130853281acecabb&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="288109" author="auto" created="Wed, 13 Mar 2013 14:26:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-03-13T14:21:56Z&apos;, u&apos;name&apos;: u&apos;Tad Marshall&apos;, u&apos;email&apos;: u&apos;tad@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5099&quot; title=&quot;Non-ASCII text on the command line isn&amp;#39;t handled well in Windows&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5099&quot;&gt;&lt;del&gt;SERVER-5099&lt;/del&gt;&lt;/a&gt; Convert UTF-16 environment to UTF-8 in WindowsCommandLine&lt;/p&gt;

&lt;p&gt;Implement support for the third parameter (environment) of main()/wmain()&lt;br/&gt;
and convert the Unicode environment strings to UTF-8.  Use the&lt;br/&gt;
environment parameter in mongo.exe.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f5352a787b042ba663dd5cc9976088f719f5651f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f5352a787b042ba663dd5cc9976088f719f5651f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="100888" author="tad" created="Wed, 21 Mar 2012 10:28:07 +0000"  >&lt;p&gt;I have made this change to mongo.exe as part of making UTF-8 work right in the shell ( &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2939&quot; title=&quot;Support Unicode fully in the Mongo shell (was &amp;quot;Linenoise UTF8 support&amp;quot;)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2939&quot;&gt;&lt;del&gt;SERVER-2939&lt;/del&gt;&lt;/a&gt; ) and it&apos;s pretty easy to convert the UTF-16 test from wmain() to a set of UTF-8 argv[] components and then let the normal UTF-8 Linux functionality use it.  I&apos;ll put the code in util/text.cpp next to the utf8/utf16 Windows code that is already there.&lt;/p&gt;</comment>
                            <comment id="92570" author="tad" created="Sun, 26 Feb 2012 16:34:57 +0000"  >&lt;p&gt;A small simplification to what I described in the problem statement would be to change the Windows executables to start at wmain() to get the wide-character Unicode text from Windows, and then convert it to UTF-8 before processing it.  We could do the whole command line and then parse it into argc and argv, or we could convert the argv components one at a time.  This would let us stay with the 8-bit-character version of boost::program_options and make the processing code more similar between Windows and non-Windows versions.  Since we want Unicode to work correctly on Windows, we would then just need to translate from UTF-8 into Windows-style UTF-16 wide characters before using the text in any Windows API.  I don&apos;t know about boost::file_operation (what happens when you pass a UTF-8 encoded string to the Windows version) but it might &quot;just work&quot; ... we&apos;ll need a bunch of manual testing to see what we can get away with.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="33269">SERVER-5333</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="54600">SERVER-7496</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 13 Mar 2013 14:26:34 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 48 weeks, 4 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 48 weeks, 4 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[Windows]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>tad</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hroc4n:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrify7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>21236</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hszv93:</customfieldvalue>

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