Is it possible to test within the document what commandline arguments were passed to tex? The particular case that prompts this is the question Tabs in output file written by xelatex and pdflatex are different where it would be useful to know if the -8bit argument has been passed to tex and issue a warning if not. That is, if pgfplots could contain the code:
\ifxetex
\ifarg{8bit}
\else
\pkgwarning{You're using xe(la)tex without the -8bit argument. Some external files might go wrong. If things don't work as you expect, try using the -8bit argument.}
\fi
\fi
then it might make it easier to spot when the situation of the linked question occurs.
(A year after asking the above question, it happened to me again and it took me some time to realise what the problem was and find the solution, even though it had been me who found it last time!)
