Tuesday, November 6, 2007

MOVB-06 Internationalization weirdness

When using the English language pack, CACLS.EXE[*] command performs as expected.
[*] This command has been taken as an example, I am pretty sure you could find others.

When using the French language pack, CACLS.EXE usage() output is truncated:



Everything seems ok in C:\Windows\System32\fr-FR\CACLS.EXE.MUI resource file. Since only 3 APIs are called by usage(), guessing the one to blame is left as an exercise to the reader:
  • FormatMessageW()
  • WideCharToMultiByte()
  • fprintf()
A revival of the NOTEPAD bug?

PS. On my home system, here is stranger behavior indeed:

Oh my, how could I dare to stop (seemingly) "useless" services?

No comments: