H
herning
the environment:
*nix, specifically CoreLinux.
the source (just a little diagnostic program):
#include <stdio.h>
int main()
{
char * arr[5] = {"Bite", "my", "shiny", "metal", "ass"};
int i;
for(i=0; i < 5; i++) {
printf("\t&arr[%d] = %x, ", i, &arr);
printf("arr[%d] = %x, %c, %s\n", i, arr, arr, arr);
}
return 0;
}
the result?
My entire shell having all of its characters transposed in the
ascii set. Except for the capital letters. Capital letters were
unaffected, but everything else turned into one of those strange
glyphs one find only in the higher reaches of the set.
I haven't tried rebooting the distrobution yet, and I suspect the
changes won't last through reset, but there are a couple of things I
want to know:
a) what the **** man?
b) what was it in my carelessly written little program that triggered
this? (Mind you, I had run simpler permutations of
this very program earlier with no problem... in fact, the
decisive change was when I included the "%c" to the output.)
Thanks, bitches.
*nix, specifically CoreLinux.
the source (just a little diagnostic program):
#include <stdio.h>
int main()
{
char * arr[5] = {"Bite", "my", "shiny", "metal", "ass"};
int i;
for(i=0; i < 5; i++) {
printf("\t&arr[%d] = %x, ", i, &arr);
printf("arr[%d] = %x, %c, %s\n", i, arr, arr, arr);
}
return 0;
}
the result?
My entire shell having all of its characters transposed in the
ascii set. Except for the capital letters. Capital letters were
unaffected, but everything else turned into one of those strange
glyphs one find only in the higher reaches of the set.
I haven't tried rebooting the distrobution yet, and I suspect the
changes won't last through reset, but there are a couple of things I
want to know:
a) what the **** man?
b) what was it in my carelessly written little program that triggered
this? (Mind you, I had run simpler permutations of
this very program earlier with no problem... in fact, the
decisive change was when I included the "%c" to the output.)
Thanks, bitches.