Boost C++ Libraries: Ticket #6581: Ordinal formatting does not work as documented https://svn.boost.org/trac10/ticket/6581 <p> The Boost.Locale page <a href="http://www.boost.org/doc/libs/1_48_0/libs/locale/doc/html/localized_text_formatting.html">Localized Text Formatting</a> mentions the following: </p> <blockquote> <p> The following format key-value pairs are supported: </p> </blockquote> <p> </p> <blockquote> <p> ... </p> </blockquote> <p> </p> <ul><li><code>ord</code> or <code>ordinal</code> -- format an ordinal number (1st, 2nd... etc) </li></ul><p> Attached is a short program that tries both <code>ord</code> and <code>ordinal</code>. The actual output is: </p> <pre class="wiki">1 1 </pre><p> Expected output: </p> <pre class="wiki">1st 1st </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6581 Trac 1.4.3 dtrebbien@… Sun, 19 Feb 2012 19:47:13 GMT attachment set https://svn.boost.org/trac10/ticket/6581 https://svn.boost.org/trac10/ticket/6581 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">locale_ord_test.cpp</span> </li> </ul> <p> Test case </p> Ticket Artyom Beilis Sun, 19 Feb 2012 20:02:54 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6581#comment:1 https://svn.boost.org/trac10/ticket/6581#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> Your code is wrong: </p> <p> Read: <a href="http://www.boost.org/doc/libs/1_48_0/libs/locale/doc/html/faq.html">http://www.boost.org/doc/libs/1_48_0/libs/locale/doc/html/faq.html</a> </p> <p> Also you need to build Boost.Locale with ICU in order to get ordinal support. </p> Ticket