this reminds me of not knowing how to address a colored person, and that leading to awkwardness.
in all honesty, you can't expect anyone not from your region to know. sure, if they don't they're idiots and should learn some world history etc etc. i've personally seen videos of the pakistani/indian border with all the routines they got like standing up with guns a few hundred meters from each other and just like having a power struggle sort of thing going on and all that stuff. the salutes, the flags. however, in the heat of a moment it's not something i keep in the back of my mind. i simply do not care as it affects me in no way what so how. i am very aware, though, that i am not swedish and would probably think something along the same lines as you if someone thought me to be swedish. granted, we're not at war with each other, but you shouldn't automatically assume people know stuff like that. for example, to me the whole thing is fucking stupid. so he called you pakistanian. it's not like the people in the two countries look so much different that the notion is preposterous for someone without inside knowledge to suggest it.
at the same time i really see your point, really. the american/canadian example is great because it's about pride really. you should learn to swallow it some times though ;p not because you're wrong, but because if i know you right you wouldn't mind being the bigger person every now and again