/* Ensures the 'buff' string uses a dot as the radix character.  */
static void checkdp(char *buff, int nb)
/* Ensures the 'buff' string uses a dot as the radix character.  */
static void checkdp(char *buff, int nb)
{
    char point = lua_getlocaledecpoint();
    char *ppoint = (char *)memchr(buff, point, nb);
    if (ppoint) *ppoint = '.';
  }
}