Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#245974: zsh: export LC_ALL=da_DK causes segfault



> This is a better patch, although it's not ideal, owing to the interface
> of strftime which doesn't signal success or failure properly.

glibc suggests this method

          buf[0] = '\1';
          len = strftime (buf, bufsize, format, tp);
          if (len == 0 && buf[0] != '\0')
            {
              /* Something went wrong in the strftime call.  */
              ...
            }

If it's portable, it would seem a better hack.



Messages sorted by: Reverse Date, Date, Thread, Author