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.
Tom Gundersen wrote:
TL;DR: Please manually delete /etc/profile.d/locale.sh before updating. If . /etc/rc.conf fails in your login shell, please read the full announcement.
Changes to locale handling:
/etc/profile.d/locale.sh is now a static file that sources the correct config files in order to set your locale, rather than being generated at boot.