I just noticed that when I'm prompted to enter my password to unlock the system, no matter what layout I choose (Persian or English) as long as I press same buttons that resembles my password in US layout it lets me in.
For example if my password is
salam and I enter
سشمشپ it will let me in.
But when I
sudo something I should enter password in correct layout.
The question is which part of the OS is responsible for this? And is it really a feature or a bug?