Commits

Shlomi Fish committed d2a1c0c
  • Participants
  • Parent commits b3b7f73

Comments (0)

Files changed (2)

 Revision history for Perl extension XML::LibXML
 
+    - Add a POSIX::setlocale call to t/02parse.t to test for the right
+    error message.
+        - https://rt.cpan.org/Public/Bug/Display.html?id=69248
+
+
 1.77            Fri Jul  1 22:27:56 IDT 2011
     - Change the signature of XML::LibXML::Reader::byteConsumed to be
     "long" instead of "int", so it can return values above 2**31 in
 use XML::LibXML::Common qw(:libxml);
 use XML::LibXML::SAX;
 use XML::LibXML::SAX::Builder;
+use POSIX qw(setlocale LC_ALL LC_CTYPE);
 
 use constant XML_DECL => "<?xml version=\"1.0\"?>\n";
 
+# This is to fix https://rt.cpan.org/Public/Bug/Display.html?id=69248
+# Testing for localised error messages.
+POSIX::setlocale (LC_ALL(), 'C');
+
 ##
 # test values
 my @goodWFStrings = (