Karl Williamson wrote: >patches welcome. Branch zefram/sv_string_from_errnum implements the first thing that I want. New API function, doing my_strerror() but with return as an SV. There's no change in the decoding heuristics; this is just making $!'s logic available to XS modules. If there's any change in the decoding for $! in the future (or any change in the locale selection logic), that would be reflected in the behaviour of this API function. I'm dubious about this function going into the "Magical Functions" section of perlapi(1). It ends up there by default, because it's in mg.c, because it calls a static function that's defined there (and which is called from other locations in that file). It's not really a suitable section, but I don't see what the correct section would be. If there are no objections, I'll probably merge this in a few days, possibly doing something about the doc section. -zeframThread Previous | Thread Next