Skip to content

Commit 7ad40c6

Browse files
committed
Add feature to Makefile detect the OS. In Linux the hex string conversion is better.
1 parent 17c4924 commit 7ad40c6

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

NStack/unicode/Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
ifeq ($(OS),Windows_NT)
2+
EXEC := maketables --tables=all --url=https://www.unicode.org/Public/15.0.0/ucd/ > Tables.cs
3+
else
4+
EXEC := ./maketables --tables=all --url=https://www.unicode.org/Public/15.0.0/ucd/ > Tables.cs
5+
endif
6+
17
tables: unicodeData caseFolding maketables
2-
maketables --tables=all --url=https://www.unicode.org/Public/15.0.0/ucd/ > Tables.cs
8+
$(EXEC)
39

410
unicodeData:
511
curl -O https://www.unicode.org/Public/15.0.0/ucd/UnicodeData.txt

NStack/unicode/Tables.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8256,7 +8256,7 @@ public static class Property {
82568256
/*0x7C */ CharClass.pS | CharClass.pp, // '|'
82578257
/*0x7D */ CharClass.pP | CharClass.pp, // '}'
82588258
/*0x7E */ CharClass.pS | CharClass.pp, // '~'
8259-
/*0x7F */ CharClass.pC, // '\x7f'
8259+
/*0x7F */ CharClass.pC, // '\u007f'
82608260
/*0x80 */ CharClass.pC, // '\u0080'
82618261
/*0x81 */ CharClass.pC, // '\u0081'
82628262
/*0x82 */ CharClass.pC, // '\u0082'

0 commit comments

Comments
 (0)