Skip to content

Commit

Permalink
Current ppport.h forcibly overrides older buggy versions of utf8_to_u…
Browse files Browse the repository at this point in the history
…vchr_buf

Hence we need to set NEED_utf8_to_uvchr_buf else we don't get *any*
utf8_to_uvchr_buf. Oops. :-)
  • Loading branch information
nwc10 committed May 22, 2021
1 parent 1f12e88 commit 2eb6b7e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dist/Data-Dumper/Dumper.xs
Expand Up @@ -2,9 +2,14 @@
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
/* FIXME - we should go through the code and validate what we can remove.
Looks like we could elimiate much of our custom utf8_to_uvchr_buf games in
favour of ppport.h, and likewise if we replace my_sprintf with my_snprintf
some more complexity dies. */
#ifdef USE_PPPORT_H
# define NEED_my_snprintf
# define NEED_sv_2pv_flags
# define NEED_utf8_to_uvchr_buf
# include "ppport.h"
#endif

Expand Down

0 comments on commit 2eb6b7e

Please sign in to comment.