This is already illegal in any decent country. It's certainly illegal in at least the US, Canada, UK, and Germany. Assuming the person can actually communicate well enough for the job, discriminating on the basis of their accent or how they talk amounts to discrimination on the basis of racial, ethnic, or national origin.
It's often one of the textbook examples of what not to do.
> sometime just not having the same “local culture” is enough to be subject to that [...] other type of discrimination is political one
People can, and do, choose their politics. And a person's political opinions can say a great deal about their character. If someone believes some particularly evil or regressive thing, I don't want to employ them or work with them. Yes, it's discriminatory. But not all discrimination is necessarily wrong.
With a lot more caveats (since "poor cultural fit" is often code for "not the right race") the same thing can even apply to culture. I'd like to think I'm pretty open-minded, but if you employed someone from a completely different culture, with no previous experience in the culture of their new workplace, and no willingness to try to learn and adopt to local norms, it's just going to be an ongoing mess of confusion and misunderstanding for everyone involved.