I started to edit an old document with capitalized headings. Making the headings was rather difficult (as can be seen on this list about a year ago), and now it seems to have broken again.

I have:

\setuphead[title]
  [page=yes,
  before={\strut\blank[5*big]},
  after={\textrule\blank},
  align=middle,
  style=\tfb,
  textcommand=\WORD
  ]

This worked fine in the past. Not anymore:

8<---


! You can't use `\relax' after \the.
<recently read> \@sl@\@@pnstate
                               
\pushmacro ...ame \@sl@ \@@pushedmacro \endcsname
                                                  \@@pushedmacro \endcsname #1
\makesectionformat ...macro \@@shortsectionnumber
                                                  \let \@@shortsectionnumber...

\rawreference ...veryreference \makesectionformat
                                                  \writereference {#2} {\sec...
<argument> ...\finalsectionnumber }{\asciititle }}
                                                  }\fi \executeifdefi! Missing \endcsname inserted.
<to be read again>
                   \let
\@@shortsectionnumber ...@EA \ifx \csname \??se #1
                                                  \c!ownnumber \endcsname \r...

\makesectionformat ... \@@shortsectionnumber \let
                                                  \@@shortsectionnumber \@@s...

\rawreference ...veryreference \makesectionformat
                                                  \writereference {#2} {\sec...
<argument> ...\finalsectionnumber }{\asciititle }}
                                                  }\fi \executeifdefined {\?...

\douppercase ...rstoftwoarguments \edef \ascii {#1
                                                  }\edef \ascii {\expandafte...
...

8<---

Using the trivial solution (\uppercase) does not work because with a non-il1 regime it does not handle the accented characters (A umlat, O umlaut) correctly. I use UTF, as it contains all the characters I need.

So, what has changed in the \WORD? It works \WORD{fine} within text but not in the headings.

TIA,

- Ville