Skip to content

Commit a681f4e

Browse files
committed
xetex fix from akira for non-bmp characters in filenames with synctex
git-svn-id: svn://tug.org/texlive/trunk/Build/source@74504 c570f23f-e606-0410-a88d-b1316a301751
1 parent 3ec0109 commit a681f4e

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

texk/web2c/lib/ChangeLog

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
* TL'25 release.
44

5+
2025-03-07 Akira Kakuto <[email protected]>
6+
7+
* texmfmp.c (gettexstring) [XETEX]: correct non-BMP characters in
8+
filenames with synctex.
9+
510
2025-02-28 Akira Kakuto <[email protected]>
611

712
* texmfmp.c: Remove problematic lines for windows (windows only)

texk/web2c/lib/texmfmp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3192,7 +3192,7 @@ gettexstring (strnumber s)
31923192
if (c >= 0xD800 && c <= 0xDBFF) {
31933193
unsigned lo = strpool[++i + strstart[s - 65536L]];
31943194
if (lo >= 0xDC00 && lo <= 0xDFFF)
3195-
c = (c - 0xD800) * 0x0400 + lo - 0xDC00;
3195+
c = 0x10000 + (c - 0xD800) * 0x0400 + lo - 0xDC00;
31963196
else
31973197
c = 0xFFFD;
31983198
}

texk/web2c/xetexdir/NEWS

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
==============================================================
22
XeTeX 0.999997 (7 March 2025)
33

4+
* Unicode characters beyond BMP in filenames also supported with synctex.
5+
46
Cross-engine changes:
57

68
* new primitive \ignoreprimitiveerror, enabled with -etex: if set

0 commit comments

Comments
 (0)