<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>14117</bug_id>
          
          <creation_ts>2008-01-22 02:09:37 +0300</creation_ts>
          <short_desc>locales are deleted according to the language</short_desc>
          <delta_ts>2008-05-14 22:23:52 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>alterator-sysconfig</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mikhail Gusarov">dottedmag</reporter>
          <assigned_to name="Anton Farygin">rider</assigned_to>
          <cc>antohami</cc>
    
    <cc>boyarsh</cc>
    
    <cc>cas</cc>
    
    <cc>ktirf</cc>
    
    <cc>ldv</cc>
    
    <cc>mike</cc>
    
    <cc>rider</cc>
    
    <cc>rom_as</cc>
    
    <cc>snejok</cc>
    
    <cc>wart</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>61690</commentid>
    <comment_count>0</comment_count>
    <who name="Mikhail Gusarov">dottedmag</who>
    <bug_when>2008-01-22 02:09:37 +0300</bug_when>
    <thetext>Many locales are deleted during installation because they are 
marked as %lang-files. This is utterly wrong, as available 
locales should not be bound to the language selected during 
installation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61691</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2008-01-22 02:42:12 +0300</bug_when>
    <thetext>Described behavior was introduced in glibc-locales-2.2.5-alt5 (20.05.2002) and
was mentioned in the %changelog entry for that release.

There is a macro switch, langify, which controls (at glibc build time) whether
glibc-locales subpackage will be built langified or not.
The default is to enable langify.

AWAIR the reason for this default was to save disk space.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61692</commentid>
    <comment_count>2</comment_count>
    <who name="Mikhail Gusarov">dottedmag</who>
    <bug_when>2008-01-22 02:54:04 +0300</bug_when>
    <thetext>I doubt it is useful anywhere except the embedded device. Maybe it should be 
disabled by default?

2ktirf: please note.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61705</commentid>
    <comment_count>3</comment_count>
    <who name="Wartan Hachaturow">wart</who>
    <bug_when>2008-01-22 12:55:05 +0300</bug_when>
    <thetext>I agree :) Removing locales forever, even during updates and glibc-locales
reinstalls, just because I used to choose &quot;English&quot; as an *installation*
language in the installer is just plain wrong. If we can&apos;t handle full-blown
locales packages, let&apos;s reinvent the whee^W^WDebian runtime locale generation
mechanism and propose the users to choose the locales they&apos;d like to have compiled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61748</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Rusakov">ktirf</who>
    <bug_when>2008-01-23 03:12:56 +0300</bug_when>
    <thetext>I agree with dottedmag@. Given that ALT Linux has some installation prospects in
regions with non-Russian, non-English locales, I believe we have to install all
translated messages. Btw, how much space is saved thanks to langify? (estimated,
if there are no actual data)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61749</commentid>
    <comment_count>5</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2008-01-23 03:27:03 +0300</bug_when>
    <thetext>(In reply to comment #4)
&gt; I agree with dottedmag@. Given that ALT Linux has some installation prospects in
&gt; regions with non-Russian, non-English locales, I believe we have to install all
&gt; translated messages.

Nobody forces us to activate %_install_langs in /etc/rpm/macros file during OS
installation.

&gt; Btw, how much space is saved thanks to langify? (estimated,
&gt; if there are no actual data)

$ du -hsc /usr/lib64/locale/{en,ru}_* |fgrep total
4.7M    total
$ du -hs /usr/lib64/locale
64M     /usr/lib64/locale

So, is there any reason to install all locales, but at the same time install
only russian translations?
If yes, then there is a reason to disable langify in glibc-locales.
If no, then there is a reason to disable %_install_langs in installer.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61750</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Rusakov">ktirf</who>
    <bug_when>2008-01-23 03:30:21 +0300</bug_when>
    <thetext>Only Russian translations are not suitable. I have just received a request about
Spanish localization in ALT Linux %-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61756</commentid>
    <comment_count>7</comment_count>
    <who name="Mikhail Gusarov">dottedmag</who>
    <bug_when>2008-01-23 09:20:12 +0300</bug_when>
    <thetext>&gt; So, is there any reason to install all locales, but at the 
same time install only russian translations?

Yes. If l10n is stripped then user gets English messages, which 
is ok (for some value of ok). If locales are stripped then user 
gets broken system which can&apos;t handle his LC_CTYPE/LC_COLLATE/LC_
WHATEVER (especially if user logs in using ssh).
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61789</commentid>
    <comment_count>8</comment_count>
    <who name="Alexey Rusakov">ktirf</who>
    <bug_when>2008-01-23 19:49:16 +0300</bug_when>
    <thetext>Do 60M matter that much nowadays?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61792</commentid>
    <comment_count>9</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2008-01-23 20:19:20 +0300</bug_when>
    <thetext>(In reply to comment #8)
&gt; Do 60M matter that much nowadays?

translations take less disk space than locales.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61793</commentid>
    <comment_count>10</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2008-01-23 20:23:57 +0300</bug_when>
    <thetext>Let&apos;s disable %_install_langs in installer then.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61794</commentid>
    <comment_count>11</comment_count>
    <who name="Alexey Rusakov">ktirf</who>
    <bug_when>2008-01-23 20:33:22 +0300</bug_when>
    <thetext>(In reply to comment #9)
&gt; (In reply to comment #8)
&gt; &gt; Do 60M matter that much nowadays?
&gt; 
&gt; translations take less disk space than locales.
Oh. That&apos;s a surprise to me. Live and learn %-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61805</commentid>
    <comment_count>12</comment_count>
    <who name="Wartan Hachaturow">wart</who>
    <bug_when>2008-01-23 23:36:03 +0300</bug_when>
    <thetext>(In reply to comment #10)
&gt; Let&apos;s disable %_install_langs in installer then.

I agree, that was more of a bug in the installer than in glibc-locales.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61818</commentid>
    <comment_count>13</comment_count>
    <who name="inger@altlinux.org">inger</who>
    <bug_when>2008-01-24 09:58:54 +0300</bug_when>
    <thetext>OK, I will disable %__rpm_install_langs in the next alterator-sysconfig release.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64854</commentid>
    <comment_count>14</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2008-02-29 20:14:49 +0300</bug_when>
    <thetext>Was fixed in alterator-sysconfig-0.5-alt2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64856</commentid>
    <comment_count>15</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2008-02-29 20:16:25 +0300</bug_when>
    <thetext>*** Bug 14706 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>