To: vim_dev@googlegroups.com Subject: Patch 8.2.1738 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.1738 Problem: Mac: str2float() recognizes comma instead of decimal point. Solution: Set LC_NUMERIC to "C". (closes #7003) Files: src/os_mac_conv.c *** ../vim-8.2.1737/src/os_mac_conv.c 2020-08-11 21:58:12.581968226 +0200 --- src/os_mac_conv.c 2020-09-23 22:03:57.649064086 +0200 *************** *** 580,585 **** --- 580,589 ---- # ifdef HAVE_LOCALE_H setlocale(LC_ALL, ""); # endif + # if defined(FEAT_FLOAT) && defined(LC_NUMERIC) + // Make sure strtod() uses a decimal point, not a comma. + setlocale(LC_NUMERIC, "C"); + # endif } } } *** ../vim-8.2.1737/src/version.c 2020-09-24 22:57:10.717447706 +0200 --- src/version.c 2020-09-24 23:07:53.200509831 +0200 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 1738, /**/ -- If the Universe is constantly expanding, why can't I ever find a parking space? /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///