rex \space class behavior

Post Reply
amitic
Posts: 14
Joined: Fri Jul 02, 2010 10:57 pm

rex \space class behavior

Post by amitic »

The \space character class behaves inconsistently in windows version 5.01.1258488718 20091117 and linux version 5.02.1285696633 20100928.
On win-5.01 \space matches the \xA0 (non breaking space) character, while on lin-5.02 it does not.

Since we have a lot of scripts that were written and tested on windows, but often run on linux, could you provide a breakdown of \space's behavior in different texis versions so we would know what to expect and whether we need to revise some (many) of the scripts/modules.

To be more exact:
- do all windows versions (regardless of version number) treat \xA0 as \space?
- do all versions <= 5.01 (regardless of platform) treat \xA0 as \space?
- or is it a combination of the above rules?

Thanks,
Aleksandar
User avatar
mark
Site Admin
Posts: 5513
Joined: Tue Apr 25, 2000 6:56 pm

rex \space class behavior

Post by mark »

\space uses the system's standard library isspace() call so it works however the system defines it. If you want to guarantee identical behavior across systems you'll need to specify the desired characters rather than using a class.
amitic
Posts: 14
Joined: Fri Jul 02, 2010 10:57 pm

rex \space class behavior

Post by amitic »

OK
Thanks
User avatar
mark
Site Admin
Posts: 5513
Joined: Tue Apr 25, 2000 6:56 pm

rex \space class behavior

Post by mark »

p.s.
Locale settings can also affect the classes.
Post Reply