endif
new
let input = repeat('A', 256)
- call writefile(['-9223372036854775808: ' . repeat("\e[1;32m41\e[0m ", 256) . ' ' . "\e[1;32m" . repeat('A', 256) . "\e[0m"], 'Xxdexpected', 'D')
+ call writefile(['9223372036854775808: ' . repeat("\e[1;32m41\e[0m ", 256) . ' ' . "\e[1;32m" . repeat('A', 256) . "\e[0m"], 'Xxdexpected', 'D')
exe 'r! printf ' . input . '| ' . s:xxd_cmd . ' -Ralways -g1 -c256 -d -o 9223372036854775808 > Xxdout'
call assert_equalfile('Xxdexpected', 'Xxdout')
call delete('Xxdout')
* 26.11.2025 update indent in exit_with_usage()
* 19.03.2026 Add -t option to end output with terminating null
* 25.03.2026 Fix color output issues
+ * 26.04.2026 Use unsigned long for printing offsets
*
* (c) 1990-1998 by Juergen Weigert (jnweiger@gmail.com)
*
# endif
#endif
-char version[] = "xxd 2026-03-25 by Juergen Weigert et al.";
+char version[] = "xxd 2026-04-26 by Juergen Weigert et al.";
#ifdef WIN32
char osver[] = " (Win32)";
#else
{
if (p == 0)
{
- addrlen = sprintf(l, decimal_offset ? "%08ld:" : "%08lx:",
+ addrlen = sprintf(l, decimal_offset ? "%08lu:" : "%08lx:",
((unsigned long)(n + seekoff + displayoff)));
for (c = addrlen; c < LLEN_NO_COLOR; l[c++] = ' ')
;