<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Benoit,<div class=""><br class=""></div><div class="">Thanks for the bug report. We’ll track it in Radar for Darwin platforms.</div><div class=""><br class=""></div><div class="">If the swift-corelibs-foundation implementation has the same bug (perhaps — I haven’t checked) then we can continue to track it with SR-6631 separately.</div><div class=""><br class=""></div><div class="">- Tony<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Dec 19, 2017, at 12:23 AM, Benoit Pereira da silva via swift-corelibs-dev <<a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><span class="">Dear All,</span><div class=""><br class=""></div><div class=""><span class=""><br class=""></span><span class="">Philippe Hausler has emitted the hypothesis that <a href="https://bugs.swift.org/browse/SR-6631" class="">https://bugs.swift.org/browse/SR-6631</a> was a bug in Darwin Objc Foundations.</span></div><div class=""><div class=""><span class="">He was right! </span>Shall i close the Swift SR-6631? </div><div class=""><br class=""></div><div class=""><span class=""><b class="">The following Objc Implementation is faulting:</b></span></div><div class="" style="font-size: 10px;"><span class=""><b class=""><br class=""></b></span></div><div class="" style="font-size: 10px;"><span class=""> </span><span style="font-family: Menlo; font-size: 11.5px; background-color: rgb(0, 58, 93); color: rgb(139, 141, 234);" class="">#import </span><span style="color: rgb(171, 69, 71); font-family: Menlo; font-size: 11.5px; background-color: rgb(0, 58, 93);" class=""><Foundation/Foundation.h></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; background-color: rgb(0, 58, 93); min-height: 14px; font-size: 10px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 11.5px; line-height: normal; font-family: Menlo; color: rgb(189, 178, 160); background-color: rgb(0, 58, 93);" class=""><span style="color: #c66576" class="">int</span> main(<span style="color: #c66576" class="">int</span> argc, <span style="color: #c66576" class="">const</span> <span style="color: #c66576" class="">char</span> * argv[]) {</div><div style="margin: 0px; font-stretch: normal; font-size: 11.5px; line-height: normal; font-family: Menlo; color: rgb(198, 101, 118); background-color: rgb(0, 58, 93);" class=""><span style="color: #bdb2a0" class=""> </span>@autoreleasepool<span style="color: #bdb2a0" class=""> {</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11.5px; line-height: normal; font-family: Menlo; color: rgb(125, 126, 126); background-color: rgb(0, 58, 93);" class=""><span style="color: #bdb2a0" class=""> </span>// Let's set to french</div><div style="margin: 0px; font-stretch: normal; font-size: 11.5px; line-height: normal; font-family: Menlo; color: rgb(189, 178, 160); background-color: rgb(0, 58, 93);" class=""> <span style="color: #76c2ff" class="">setlocale</span>(<span style="color: #58c9c5" class="">LC_ALL</span>,<span style="color: #ab4547" class="">"fr_FR"</span>);</div><div style="margin: 0px; font-stretch: normal; font-size: 11.5px; line-height: normal; font-family: Menlo; color: rgb(189, 178, 160); background-color: rgb(0, 58, 93);" class=""> <span style="color: #3fa7ad" class="">NSDictionary</span> *dictionary = <span style="color: #8b87ff" class="">@{</span><span style="color: #ab4547" class="">@"decimalValue"</span>:<span style="color: #8b87ff" class="">@1.1}</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 11.5px; line-height: normal; font-family: Menlo; color: rgb(189, 178, 160); background-color: rgb(0, 58, 93);" class=""> <span style="color: #3fa7ad" class="">NSError</span>* error = <span style="color: #c66576" class="">nil</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 11.5px; line-height: normal; font-family: Menlo; color: rgb(189, 178, 160); background-color: rgb(0, 58, 93);" class=""> <span style="color: #3fa7ad" class="">NSData</span>* data = [<span style="color: #3fa7ad" class="">NSJSONSerialization</span> <span style="color: #76c2ff" class="">dataWithJSONObject</span>:dictionary <span style="color: #76c2ff" class="">options</span>:<span style="color: #00b1ff" class="">kNilOptions</span> <span style="color: #76c2ff" class="">error</span>:&error];</div><div style="margin: 0px; font-stretch: normal; font-size: 11.5px; line-height: normal; font-family: Menlo; color: rgb(189, 178, 160); background-color: rgb(0, 58, 93);" class=""> <span style="color: #3fa7ad" class="">NSString</span> * json = [[<span style="color: #3fa7ad" class="">NSString</span> <span style="color: #76c2ff" class="">alloc</span>] <span style="color: #76c2ff" class="">initWithData</span>:data <span style="color: #76c2ff" class="">encoding</span>:<span style="color: #00b1ff" class="">NSUTF8StringEncoding</span>];</div><div style="margin: 0px; font-stretch: normal; font-size: 11.5px; line-height: normal; font-family: Menlo; color: rgb(189, 178, 160); background-color: rgb(0, 58, 93);" class=""> <span style="color: #76c2ff" class="">NSLog</span>(<span style="color: #ab4547" class="">@"%@"</span>,json);</div><div style="margin: 0px; font-stretch: normal; font-size: 11.5px; line-height: normal; font-family: Menlo; color: rgb(189, 178, 160); background-color: rgb(0, 58, 93);" class=""> }</div><div style="margin: 0px; font-stretch: normal; font-size: 11.5px; line-height: normal; font-family: Menlo; color: rgb(198, 101, 118); background-color: rgb(0, 58, 93);" class=""><span style="color: #bdb2a0" class=""> </span>return<span style="color: #bdb2a0" class=""> </span><span style="color: #8b87ff" class="">0</span><span style="color: #bdb2a0" class="">;</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11.5px; line-height: normal; font-family: Menlo; color: rgb(189, 178, 160); background-color: rgb(0, 58, 93);" class="">}</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><span class="">Result : </span><b style="color: rgb(189, 178, 160); font-family: Menlo; font-size: 11px;" class="">2017-12-19 09:08:49.657316+0100 doubleEncodingObjc[2016:82301] {"decimalValue":1,1000000000000001}</b></div><div class=""><b style="color: rgb(189, 178, 160); font-family: Menlo; font-size: 11px;" class=""><br class=""></b></div><div class=""><div class=""><br class=""></div><div class=""><br class=""></div><div class="">I’have been updating the relevant radar: <a href="https://bugreport.apple.com/web/?problemID=36107307" class="">https://bugreport.apple.com/web/?problemID=36107307</a></div><div class=""><b class=""><br class=""></b></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Benoit</div><div class=""><br class=""></div><div class=""><br class=""></div><br class=""><div class="">
<div style="font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 14px;" class=""><div apple-content-edited="true" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span style="font-size: 12px; line-height: normal; orphans: 2; widows: 2;" class=""><font face="HelveticaNeue-Light" class=""><div style="orphans: auto; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="margin: 0px; line-height: normal;" class=""><div style="margin: 0px; line-height: normal;" class=""><b class="">Benoit Pereira da Silva</b></div><div style="margin: 0px; line-height: normal;" class="">Ultra Mobile Developer & Movement Activist</div><div style="margin: 0px; line-height: normal;" class="">Développeur Ultra Mobile & Militant du mouvement</div><div style="margin: 0px; line-height: normal;" class=""><a href="https://pereira-da-silva.com/" class="">https://pereira-da-silva.com</a></div><div style="margin: 0px; line-height: normal;" class=""><span style="line-height: normal;" class=""></span></div></div></div><div style="orphans: auto; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class=""></span></div></font></span></div></div></div></div></div></div><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal;"><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal;" class=""><span class=""><span class=""><span class=""><span class=""><span class=""><span class=""><span class=""><span class=""><span id="cid:E3AF4CA8-D774-47D1-AF27-2B086409AEED@home"><bannerp.jpg></span></span><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span class=""><span class=""><br class="Apple-interchange-newline"><br class="Apple-interchange-newline"><br class=""></span></span></span></span></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span class=""><span class=""><div style="font-family: HelveticaNeue-Light; orphans: 2; widows: 2;" class=""><div class=""><span style="orphans: auto; widows: auto; background-color: rgb(255, 255, 255);" class="">✄ --------------------------------</span><br style="orphans: auto; widows: auto;" class=""><font size="1" style="orphans: auto; widows: auto;" class="">This e-mail is confidential. Distribution, copy, publication or use of this information for any purpose is prohibited without agreement of the sender.<br class="">Ce message est confidentiel. Toute distribution, copie, publication ou usage des informations contenues dans ce message sont interdits sans agrément préalable de l'expéditeur.</font><br style="orphans: auto; widows: auto;" class=""></div></div></span></span></span></span></div><br class="Apple-interchange-newline" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal;"><br class="Apple-interchange-newline" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal;">
</span></span></span></span></span></span></span></span></span></div>
<br class=""></div></div></div>_______________________________________________<br class="">swift-corelibs-dev mailing list<br class=""><a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev<br class=""></div></blockquote></div><br class=""></div></body></html>