Project

Profile

Help

Bug #1663

Broken surrogate pair error when using xsl:number with U+1D7CF

Added by O'Neil Delpratt almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Category:
Internals
Sprint/Milestone:
-
Start date:
2012-12-19
Due date:
% Done:

100%

Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
9.4
Fixed in version:
9.4.0.7

Description

Bug reported by Abel Braaksma:

I was experimenting a bit with numbering systems and tried the following template (xslt version 2.0, nothing else):

<xsl:template match="/">
<out>
<xsl:for-each select="0 to 25">
<xsl:number value="." format=" 𝟏"/>
</xsl:for-each>
</out>
</xsl:template>

It raised the following error:

Engine name: Saxon-PE 9.4.0.3
Severity: fatal
Description: Failure writing to file:/pathtofile.html - Broken surrogate pair: first char 0xd835, second 0x30; illegal combination
Start location: 10:0

History

#1 Updated by O'Neil Delpratt almost 4 years ago

  • Found in version set to 9.4

Bug found in the prepare method of the NumberFormatter class: Incorrect handling of surrogate pairs. Bug fixed and committed to subversion.

#2 Updated by O'Neil Delpratt almost 4 years ago

  • Status changed from In Progress to Resolved

#3 Updated by O'Neil Delpratt over 3 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in version set to 9.4.0.7

Bug closed. Fixed in Saxon maintenance release 9.4.0.7

Also available in: Atom PDF