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 -- [email protected] -- 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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202009251004.08PA48dD445070%40masaka.moolenaar.net.

Raspunde prin e-mail lui