Enter NULL characters in vi...

Steve Flynn anothermindbomb at gmail.com
Wed Mar 3 21:35:25 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Evening all,

	Been working on some code to clean up UTF16 encoded files and I find
myself needing to create a test file with some NULLs embedded within it.

	I had hoped that (in vi) Ctrl-V followed by an @ would do the trick but
it seems not.

	The :digraph command give me a nice list, but I'm still at a loss as to
how to get a deliberate NULL character into the middle of some existing
text.

	Any clues?

- -- 
Steve Flynn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuO1h0ACgkQpOzvLkUb86C0agCePl6jyGANfOcetHdusPkLHsEf
JyMAoMcec97c6oqEsBzrxh+NVY8qHw5D
=91J3
-----END PGP SIGNATURE-----




More information about the ubuntu-users mailing list