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

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

    <bug>
          <bug_id>3709</bug_id>
          
          <creation_ts>2004-02-17 16:52:42 +0300</creation_ts>
          <short_desc>Лишние кавычки в инит-скрипте не дают правильно опознать локаль</short_desc>
          <delta_ts>2005-07-13 15:45:50 +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>MySQL-server</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>3454</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sergey Golovin">svgol</reporter>
          <assigned_to name="Kachalov Anton">mouse</assigned_to>
          <cc>mike</cc>
    
    <cc>nickel</cc>
    
    <cc>rider</cc>
    
    <cc>shaba</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>11827</commentid>
    <comment_count>0</comment_count>
    <who name="Sergey Golovin">svgol</who>
    <bug_when>2004-02-17 16:52:42 +0300</bug_when>
    <thetext>В файле /etc/init.d/mysqld есть строка

default_charset=&quot;$(. /etc/sysconfig/i18n &amp;&amp; \ 
                            locale |sed -ne
&apos;s/^LC_COLLATE=&quot;[^&quot;.]\+\.\([^&quot;]\+\)&quot;$/\1/p&apos;)&quot;

В ней имеются лишние кавычки одна - после знака равно, вторая - перед долларом,
что приводит к &quot;ненахождению&quot; строки, содержащей имя локали.  Как следствие,
устанавливается переменная MySQL charracter_set в latin1.

ОКРУЖЕНИЕ:
MySQL-server-4.0.17-alt1


Steps to Reproduce:
1. service mysqld restart (и смотреть, что выдает)
2. убрать упомянутые кавычки и service mysqld restart (смотреть, что выдает)
3. Сравнить, что выдает, в обоих случаях :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11828</commentid>
    <comment_count>1</comment_count>
    <who name="Sergey Golovin">svgol</who>
    <bug_when>2004-02-17 16:55:20 +0300</bug_when>
    <thetext>В описании есть неточность: речь идет о кавычках в части sed&apos;овского
выражения.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11830</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2004-02-17 18:57:19 +0300</bug_when>
    <thetext>-- morozov@ :

Баг.
Решение я уже публиковал. Удалять кавычки совсем нельзя, [почти]
правильная строчка выглядит как

default_charset=&quot;$(. /etc/sysconfig/i18n &amp;&amp; locale | sed -ne
&apos;s/^LC_COLLATE=&quot;\?[^&quot;.]\+\.\([^&quot;]\+\)&quot;\?$/\1/p&apos;)&quot;

P.S. Занесите в BTS, пожалуйста. У меня там эккаунта нет :-)
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11832</commentid>
    <comment_count>3</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2004-02-17 19:08:45 +0300</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 3454 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>