Looks like you forgot to run the command:sudo locale-genafter correcting the locale.gen file?If there are any errors please post the output, otherwise just reboot.
I know in order to understand how commands work, we should use man page. But for coammand locale and locale-gen. I did got the exact meaning and their duty. I need some description about their jobs and the relation between locale and locale-gen.
okay so I rebooted without saving the before.