Host-side checks
================

namemap.c rounds a name through the three layers that a name crosses on its
way between the wire and RISC OS, using the module's own c.alphabet:

  narrow   UTF-16 from the server        -> the form names are held in
  xsmb2ro  that form                     -> what RISC OS shows
  xro2smb  what RISC OS shows            -> back to the held form
  widen    the held form                 -> UTF-16 for the server

and checks that what goes round comes back identical.  The narrow, widen and
escaping loops in it are copied verbatim from c.smb2fs, c.smb2 and c.smb, so
a change to any of the three wants copying across before this is run.

It builds and runs anywhere with a C compiler; it needs nothing of RISC OS.

  gcc -Wall -o namemap namemap.c ../c/alphabet && ./namemap

It covers plain text, the characters RISC OS keeps at &80-&9F, characters
the alphabet has not got, a character outside the basic plane, and the names
whose own text could be mistaken for the notation used for all of those.
