[latex3-commits] [l3svn] r6312 - Use null character as an active character

noreply at latex-project.org noreply at latex-project.org
Sun Nov 22 18:11:59 CET 2015


Author: bruno
Date: 2015-11-22 18:11:59 +0100 (Sun, 22 Nov 2015)
New Revision: 6312

Modified:
   trunk/l3packages/xparse/xparse.dtx
Log:
Use null character as an active character

In the unlikely event that a user wants to use
\SplitList with a null-character as a delimiter,
the earlier code wouldn't have worked because
lower-casing @ with lccode 0 does not give the
null character.


Modified: trunk/l3packages/xparse/xparse.dtx
===================================================================
--- trunk/l3packages/xparse/xparse.dtx	2015-11-22 17:10:36 UTC (rev 6311)
+++ trunk/l3packages/xparse/xparse.dtx	2015-11-22 17:11:59 UTC (rev 6312)
@@ -3090,16 +3090,16 @@
   }
 \cs_generate_variant:Nn \@@_split_list_multi:nn { nV }
 \group_begin:
-\char_set_catcode_active:N \@
+\char_set_catcode_active:N \^^@
 \cs_new_protected:Npn \@@_split_list_single:Nn #1#2
   {
     \tl_set:Nn \l_@@_split_list_tl {#2}
     \group_begin:
-    \char_set_lccode:nn { `\@ } { `#1 }
+    \char_set_lccode:nn { `\^^@ } { `#1 }
     \tex_lowercase:D
       {
         \group_end:
-        \tl_replace_all:Nnn \l_@@_split_list_tl { @ }
+        \tl_replace_all:Nnn \l_@@_split_list_tl { ^^@ }
       }   {#1}
      \@@_split_list_multi:nV {#1} \l_@@_split_list_tl
    }



More information about the latex3-commits mailing list