<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>さくらたんどっとびーず &#187; Patch</title>
	<atom:link href="http://sakuratan.biz/archives/tag/patch/feed" rel="self" type="application/rss+xml" />
	<link>http://sakuratan.biz</link>
	<description>モロモロ工事中です</description>
	<lastBuildDate>Sun, 25 Jun 2023 12:51:51 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Patch for Grunge Flora WordPress theme (with Japanese)</title>
		<link>http://sakuratan.biz/archives/302</link>
		<comments>http://sakuratan.biz/archives/302#comments</comments>
		<pubDate>Thu, 12 Mar 2009 14:27:11 +0000</pubDate>
		<dc:creator>さくら</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[一人でできるもん！]]></category>
		<category><![CDATA[Patch]]></category>
		<category><![CDATA[Themes]]></category>

		<guid isPermaLink="false">http://sakuratan.biz/?p=302</guid>
		<description><![CDATA[I updated my blog&#8217;s theme to Grunge Flora that is so cute, pretty and elegant template!! That is a great template but it seems to have Japanesea bug when used with multi byte environment. It des... <div style="margin-top:1ex"><a href="http://sakuratan.biz/archives/302">(続きを読む)</a></div>]]></description>
			<content:encoded><![CDATA[<p>I updated my blog&#8217;s theme to <a href="http://www.thebookish.info/2009/03/09/grunge-flora-free-wordpress-theme/">Grunge Flora</a> that is so cute, pretty and elegant template!!</p>
<p>That is a great template but it seems to have Japanesea bug when used with multi byte environment. It destructs a trailing character of “Recent Comments” in Japanese comments like this;</p>
<p><img src="http://sakuratan.biz/blog/wp-content/uploads/2009/03/grungeflora-mbbroken.png" alt="A broken Japanese comment" title="A broken Japanese comment" width="326" height="81" class="aligncenter size-full wp-image-301" /></p>
<p>The problem is in “src_simple_recent_comments” template function. The function uses SUBSTRING MySQL function to shrink the comment string. But SUBSTRING MySQL function has a problem that may miss to count the length of the multi byte strings.</p>
<p>To fix the problem, “src_simple_recent_comments” should use the mb_substr PHP function.</p>
<p>I made a patch file <a href="/blog/wp-content/themes/grungefloral/grungefloral-simple_recent_comments.diff">grungefloral-simple_recent_comments.diff</a> to fix the problem.<br />
Apply this patch if you want to use the Grunge Flora theme on Japanese blogs.</p>
<p>Have fun!<br />
Sakura.</p>
]]></content:encoded>
			<wfw:commentRss>http://sakuratan.biz/archives/302/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
