<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>4362</bug_id>
          
          <creation_ts>2005-08-09 13:13:04 -0700</creation_ts>
          <short_desc>Add mac-cyrillic to the list of encodings</short_desc>
          <delta_ts>2005-12-14 11:02:14 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.sbrf.ru/</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="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Adele Peterson">adele</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>16302</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-08-09 13:13:04 -0700</bug_when>
    <thetext>This site (one of the largest banks in Russia) sends charset=mac-cyrillic
instead of x-mac-cyrillic. Safari doesn&apos;t support such an alias.

I have tried adding an alias to WebCore/kwq/mac-encodings.txt, but for whatever
reason, this makes the build fail:

MacCyrillic: x-mac-cyrillic, mac-cyrillic, xmacukrainian

    /bin/sh -c
/Users/ap/WebKit/WebKitBuild/WebCore.build/Deployment/WebCore.build/Script-932FC0D20824A2C4005B3C75.sh
mac-cyrillic, in mac-encodings.txt, has illegal characters in it (must be all
lowercase alphanumeric)

Also, xmacukrainian (and x-mac-ukrainian) look like aliases to MacUkrainian, not
MacCyrillic.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21091</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-10-01 13:39:14 -0700</bug_when>
    <thetext>The make-charset-table issue may have been obsoleted by switching to ICU (I&apos;m not really sure, though).

I have filed a request to add mac-cyrillic as an ICU Jitterbug 4859 (&lt;http://dev.icu-project.org/cgi-bin/
icu-bugs&gt;).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25926</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-12-13 19:33:32 -0800</bug_when>
    <thetext>All you have to do is add &quot;maccyrillic&quot; without the hyphen. Non-alphanumeric characters are ignored when 
doing the table match and only the first item in each table is allowed to contain them (because it&apos;s used in 
reverse-mapping an encoding to its name).

So fixing this bug is as simple as adding that element to the table.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25934</commentid>
    <comment_count>3</comment_count>
      <attachid>5072</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-12-13 22:14:55 -0800</bug_when>
    <thetext>Created attachment 5072
proposed patch

Thank you, I didn&apos;t grasp the difference between the first and subsequent
elements :)

I&apos;m left wondering about rdar://3327157 (x-mac-ukrainian should be mapped to
MacCyrillic) - could it be a workaround for some problem that no longer exists?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25935</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-12-13 22:28:23 -0800</bug_when>
    <thetext>A layout test is probably not necessary here (there are no tests for the presence of charset aliases) - 
correct me if I&apos;m wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25957</commentid>
    <comment_count>5</comment_count>
      <attachid>5072</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-12-14 09:41:30 -0800</bug_when>
    <thetext>Comment on attachment 5072
proposed patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25964</commentid>
    <comment_count>6</comment_count>
    <who name="Adele Peterson">adele</who>
    <bug_when>2005-12-14 10:18:03 -0800</bug_when>
    <thetext>I&apos;ve committed this.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>5072</attachid>
            <date>2005-12-13 22:14:55 -0800</date>
            <delta_ts>2005-12-14 09:41:30 -0800</delta_ts>
            <desc>proposed patch</desc>
            <filename>MacEncodingsPatch.txt</filename>
            <type>text/plain</type>
            <size>616</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">SW5kZXg6IG1hYy1lbmNvZGluZ3MudHh0Cj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9jdnMvcm9vdC9X
ZWJDb3JlL2t3cS9tYWMtZW5jb2RpbmdzLnR4dCx2CnJldHJpZXZpbmcgcmV2aXNpb24gMS4yNApk
aWZmIC1wIC11IC1yMS4yNCBtYWMtZW5jb2RpbmdzLnR4dAotLS0gbWFjLWVuY29kaW5ncy50eHQJ
MjMgU2VwIDIwMDMgMDQ6MDM6MTYgLTAwMDAJMS4yNAorKysgbWFjLWVuY29kaW5ncy50eHQJMTQg
RGVjIDIwMDUgMDY6MTc6MjkgLTAwMDAKQEAgLTIwLDcgKzIwLDcgQEAgTWFjS29yZWFuOiB4LW1h
Yy1rb3JlYW4KIE1hY0FyYWJpYzogeC1tYWMtYXJhYmljCiBNYWNIZWJyZXc6IHgtbWFjLWhlYnJl
dwogTWFjR3JlZWs6IHgtbWFjLWdyZWVrCi1NYWNDeXJpbGxpYzogeC1tYWMtY3lyaWxsaWMsIHht
YWN1a3JhaW5pYW4KK01hY0N5cmlsbGljOiB4LW1hYy1jeXJpbGxpYywgbWFjY3lyaWxsaWMsIHht
YWN1a3JhaW5pYW4KIE1hY0RldmFuYWdhcmk6IHgtbWFjLWRldmFuYWdhcmkKIE1hY0d1cm11a2hp
OiB4LW1hYy1ndXJtdWtoaQogTWFjR3VqYXJhdGk6IHgtbWFjLWd1amFyYXRpCg==
</data>
<flag name="review"
          id="1001"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>