How to preserve custom locales across glibc-* updates?

Solution Verified - Updated -

Issue

  • How to preserve custom locales across glibc-* updates?
  • Why does customized locale info disappear after updating glibc-*?
  • How to preserve custom locales after glibc-common re-install?
  • After updating glibc and dependent packages, some locale info is missing from the output of # locale -a.

    # localedef -f WINDOWS-31J -i ja_JP ja_JP.SJIS
    
    # locale -a | grep ja
    ja_JP
    ja_JP.eucjp
    ja_JP.sjis   <===  here it is.
    ja_JP.ujis
    ja_JP.utf8
    japanese
    japanese.euc
    
    # yum update glibc -y
    (..SNIP..)
    
    # locale -a | grep ja
    ja_JP
    ja_JP.eucjp
    ja_JP.ujis
    ja_JP.utf8
    japanese
    japanese.euc
    
     /*  ja_JP.sjis is missing  */
    

    Why does this happen? And should I define it again?

Environment

  • Red Hat Enterprise Linux
    • 5.x
    • 6.x
    • 7.x
  • glibc
  • glibc-common

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content