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

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Daniel Lange's blog (Entries tagged as bug)</title>
    <link>http://daniel-lange.com/</link>
    <description>Life, IT, Managers, Cars...</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.5.3 - http://www.s9y.org/</generator>
    <pubDate>Fri, 01 May 2009 20:40:16 GMT</pubDate>

    <image>
        <url>http://daniel-lange.com/templates/bulletproof/img/s9y_banner_small.png</url>
        <title>RSS: Daniel Lange's blog - Life, IT, Managers, Cars...</title>
        <link>http://daniel-lange.com/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Fix Umlauts in the XFCE Terminal</title>
    <link>http://daniel-lange.com/archives/44-Fix-Umlauts-in-the-XFCE-Terminal.html</link>
            <category>IT</category>
    
    <comments>http://daniel-lange.com/archives/44-Fix-Umlauts-in-the-XFCE-Terminal.html#comments</comments>
    <wfw:comment>http://daniel-lange.com/wfwcomment.php?cid=44</wfw:comment>

    <slash:comments>5</slash:comments>
    <wfw:commentRss>http://daniel-lange.com/rss.php?version=2.0&amp;type=comments&amp;cid=44</wfw:commentRss>
    

    <author>nospam@example.com (Daniel Lange)</author>
    <content:encoded>
    &lt;p&gt;The XFCE Terminal has the weird issue of sometimes showing question marks (?) instead of German Umlauts (äöüÄÖÜ) although they work fine in any other stock XFCE application (e.g. the default editor &quot;mousepad&quot;).&lt;/p&gt;

&lt;p&gt;The solution to this can be found on the &lt;a href=&quot;http://forum.xfce.org/index.php?topic=3302.0&quot; title=&quot;XFCE Forum thread on Umlauts in Terminal&quot;&gt;XFCE Forums&lt;/a&gt; but it took me quite some time to find it. It was difficult to find a suitable search query to dig out that page. Google turns up a lot of irrelevant stuff on &quot;XFCE Terminal question marks&quot;...&lt;/p&gt;

&lt;div class=&quot;serendipity_imageComment_center&quot; style=&quot;width: 526px&quot;&gt;&lt;div class=&quot;serendipity_imageComment_img&quot;&gt;&lt;!-- s9ymdb:525 --&gt;&lt;img class=&quot;serendipity_image_center&quot; width=&quot;526&quot; height=&quot;283&quot;  src=&quot;http://daniel-lange.com/uploads/entries/090430_XFCE_terminal.png&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;serendipity_imageComment_txt&quot;&gt;XFCE Editor Umlauts with and without LANG variable set&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The problem with Umlauts (and other 8bit ASCII characters) showing as question marks arises if the user has no LANG variable set.&lt;/p&gt;

&lt;p&gt;A simple&lt;/p&gt;

&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;export&lt;/span&gt; &lt;span style=&quot;color: #007800;&quot;&gt;LANG&lt;/span&gt;=en_US&lt;/div&gt;

&lt;p&gt;resolves the issue. Put that into &lt;em&gt;~/.bashrc&lt;/em&gt; or any other place suitable in your distribution.&lt;/p&gt;

&lt;p&gt;Gentoo users may want to&lt;/p&gt;

&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;su&lt;/span&gt; &amp;#160;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# become root&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;LANG=en_US&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;/&lt;/span&gt;etc&lt;span style=&quot;color: #000000;&quot;&gt;/&lt;/span&gt;env.d&lt;span style=&quot;color: #000000;&quot;&gt;/&lt;/span&gt;02locale&lt;br /&gt;env-update&lt;br /&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;exit&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;source&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;/&lt;/span&gt;etc&lt;span style=&quot;color: #000000;&quot;&gt;/&lt;/span&gt;profile&lt;/div&gt;

&lt;p&gt;to set the LANG variable system-wide.&lt;/p&gt;

&lt;p&gt;So keywords, dear Google: &lt;em&gt;Umlaute, deutsch, Fragezeichen, kaputt, falsch, broken, display, zeigt, charset, Zeichensatz&lt;/em&gt; &lt;img src=&quot;http://daniel-lange.com/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Fri, 01 May 2009 23:20:00 +0200</pubDate>
    <guid isPermaLink="false">http://daniel-lange.com/archives/44-guid.html</guid>
    <category>bug</category>
<category>charset</category>
<category>gentoo</category>
<category>terminal</category>
<category>umlauts</category>
<category>xfce</category>

</item>
<item>
    <title>Seredipity default event_s9ymarkup plugin breaking URLs that contain underscores</title>
    <link>http://daniel-lange.com/archives/28-Seredipity-default-event_s9ymarkup-plugin-breaking-URLs-that-contain-underscores.html</link>
            <category>Serendipity</category>
    
    <comments>http://daniel-lange.com/archives/28-Seredipity-default-event_s9ymarkup-plugin-breaking-URLs-that-contain-underscores.html#comments</comments>
    <wfw:comment>http://daniel-lange.com/wfwcomment.php?cid=28</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://daniel-lange.com/rss.php?version=2.0&amp;type=comments&amp;cid=28</wfw:commentRss>
    

    <author>nospam@example.com (Daniel Lange)</author>
    <content:encoded>
    &lt;p&gt;
The default Serendipity mark-up plugin (event_s9ymarkup) currently breaks URLs that contain underscores.&lt;/p&gt;

&lt;p&gt;So
&lt;/p&gt;

&lt;blockquote&gt;http://en.wikipedia.org/wiki/Statler_%26_Waldorf&lt;/blockquote&gt;

&lt;p&gt;will end up&lt;/p&gt;

&lt;blockquote&gt;http://en.wikipedia.org/wiki/Statler&amp;lt;/u&amp;gt;%26_Waldorf&lt;/blockquote&gt;

&lt;p /&gt;

&lt;p&gt;
because of a faulty regex.

Garvin Hicking does not really want to fix this. (See &lt;a target=&quot;_blank&quot; title=&quot;Serendipity Forums: serendipity_event_s9ymarkup adds &lt;/u&gt; to URLs breaking&quot; href=&quot;http://board.s9y.org/viewtopic.php?p=72455&quot;&gt;this&lt;/a&gt; s9y support forum article for arguments pro/contra fixing it). So if you encounter this problem, your options are:
&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;replace _ in URLs with %5F (aka manually urlencode it)&lt;/li&gt;&lt;li&gt;remove the plugin or disable it
&lt;/li&gt;&lt;li&gt;patch the plugin&lt;/li&gt;&lt;/ul&gt;

&lt;p&gt;Patching is basically changing&lt;/p&gt;

&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;plugins/serendipity_event_s9ymarkup/serendipity_event_s9ymarkup.php&lt;/font&gt;:&lt;br /&gt;&lt;/p&gt;

&lt;blockquote&gt;$text = preg_replace(&#039;/\b_([\S ]+?)_\b/&#039;,&#039;&amp;lt;u&amp;gt;\1&amp;lt;/u&amp;gt;&#039;,$text);&lt;/blockquote&gt;

&lt;p&gt;to&lt;/p&gt;

&lt;blockquote&gt;$text = preg_replace(&#039;/\ _([\S ]+?)_\ /&#039;,&#039; &amp;lt;u&amp;gt;\1&amp;lt;/u&amp;gt; &#039;,$text);&lt;/blockquote&gt;

&lt;p&gt;If you want to be writing things like &amp;quot;Haha[&lt;em&gt;lol&lt;/em&gt;]&amp;quot; (which I have no real use for ...), extend the &amp;quot;\ &amp;quot; with whatever you&#039;d like to be o.k. to delimit &lt;em&gt;bolded&lt;/em&gt; words beyond blanks. It should only be symbols that are not valid in URLs (so none of &amp;quot;$-_.+!*&#039;(),&amp;quot; which are all valid in URLs according to &lt;a title=&quot;RFC 1738 - Uniform Resource Locators (URL)&quot; target=&quot;_blank&quot; href=&quot;http://www.ietf.org/rfc/rfc1738.txt&quot;&gt;RFC 1738&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;You may also want to consider replacing one underscore (&amp;quot;_&amp;quot;) with two or more (&amp;quot;__&amp;quot;) to make the detection, that you actually wanted to write bold text, more reliable.&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Fri, 11 Apr 2008 13:30:00 +0200</pubDate>
    <guid isPermaLink="false">http://daniel-lange.com/archives/28-guid.html</guid>
    <category>bug</category>
<category>html</category>
<category>plugin</category>
<category>serendipity</category>
<category>underscore</category>
<category>url</category>

</item>
<item>
    <title>SSHd chroot and PAM</title>
    <link>http://daniel-lange.com/archives/11-SSHd-chroot-and-PAM.html</link>
            <category>Gentoo</category>
    
    <comments>http://daniel-lange.com/archives/11-SSHd-chroot-and-PAM.html#comments</comments>
    <wfw:comment>http://daniel-lange.com/wfwcomment.php?cid=11</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://daniel-lange.com/rss.php?version=2.0&amp;type=comments&amp;cid=11</wfw:commentRss>
    

    <author>nospam@example.com (Daniel Lange)</author>
    <content:encoded>
    &lt;p&gt;SSH with &lt;a href=&quot;http://chrootssh.sourceforge.net/index.php&quot; target=&quot;_blank&quot; title=&quot;chroot patch for sshd&quot;&gt;chroot patch&lt;/a&gt; has been working fine for a number of years. Since &lt;a href=&quot;http://www.kernel.org/pub/linux/libs/pam/&quot; target=&quot;_blank&quot; title=&quot;Linux-PAM Homepage on kernel.org&quot;&gt;PAM&lt;/a&gt; &lt;a href=&quot;http://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml&quot; target=&quot;_blank&quot; title=&quot;Gentoo PAM v0.99 upgrade guide&quot;&gt;v0.99&lt;/a&gt; things have broken though, if users are chrooted with the &amp;quot;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;/home/username&lt;b&gt;/./&lt;/b&gt;&lt;/font&gt;&amp;quot; syntax as their homedir.&lt;/p&gt;

&lt;p&gt;SSH sessions will just terminate immediately after successful logon. Doh.&lt;/p&gt;

&lt;p&gt;Two solutions exist:&lt;/p&gt;

&lt;ol&gt;&lt;li&gt;Put &lt;font face=&quot;courier new,courier,monospace&quot;&gt;UsePAM no&lt;/font&gt; into &lt;font face=&quot;courier new,courier,monospace&quot;&gt;/etc/ssh/sshd_config&lt;/font&gt; and use the chroot patch and &lt;b&gt;/./&lt;/b&gt; in users homedirs&lt;/li&gt;&lt;li&gt;Keep &lt;font face=&quot;courier new,courier,monospace&quot;&gt;UsePAM yes&lt;/font&gt;. &lt;font face=&quot;courier new,courier,monospace&quot;&gt;Emerge sys-auth/pam_chroot&lt;/font&gt; and add &lt;font face=&quot;courier new,courier,monospace&quot;&gt;session required pam_chroot.so&lt;/font&gt; to &lt;font face=&quot;courier new,courier,monospace&quot;&gt;/etc/pamd.d/sshd&lt;/font&gt; setup &lt;a href=&quot;http://pam-chroot.cvs.sourceforge.net/pam-chroot/pam_chroot/chroot.conf?view=markup&quot; target=&quot;_blank&quot; title=&quot;chroot.conf example and syntax&quot;&gt;/etc/security/chroot.conf&lt;/a&gt; or add a &lt;font face=&quot;courier new,courier,monospace&quot;&gt;chroot_dir=/home/username/&lt;/font&gt; to the pam_chroot.so line.&lt;br /&gt;This will currently not work for amd64 though as the &lt;a title=&quot;Gentoo bugzilla: sys-auth/pam_chroot testing request&quot; target=&quot;_blank&quot; href=&quot;http://bugs.gentoo.org/show_bug.cgi?id=185205&quot;&gt;Gentoo bug regarding pam_chroot&lt;/a&gt; has not cought any attention from the arch testers. Since July...&lt;/li&gt;&lt;/ol&gt;

&lt;p&gt;Bugging the arch testers in &lt;a title=&quot;IRC Channel #gentoo-amd64 on freenode&quot; href=&quot;irc://irc.freenode.net/#gentoo-amd64&quot;&gt;#Gentoo-amd64&lt;/a&gt; didn&#039;t help either:&lt;/p&gt;
 &lt;br /&gt;&lt;a href=&quot;http://daniel-lange.com/archives/11-SSHd-chroot-and-PAM.html#extended&quot;&gt;Continue reading &quot;SSHd chroot and PAM&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Sun, 18 Nov 2007 19:09:14 +0100</pubDate>
    <guid isPermaLink="false">http://daniel-lange.com/archives/11-guid.html</guid>
    <category>amd64</category>
<category>bug</category>
<category>chroot</category>
<category>gentoo</category>
<category>pam</category>
<category>sshd</category>
<category>updated</category>

</item>
<item>
    <title>Serendipity plugin livesearch does not work with bulletproof template</title>
    <link>http://daniel-lange.com/archives/3-Serendipity-plugin-livesearch-does-not-work-with-bulletproof-template.html</link>
            <category>Serendipity</category>
    
    <comments>http://daniel-lange.com/archives/3-Serendipity-plugin-livesearch-does-not-work-with-bulletproof-template.html#comments</comments>
    <wfw:comment>http://daniel-lange.com/wfwcomment.php?cid=3</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://daniel-lange.com/rss.php?version=2.0&amp;type=comments&amp;cid=3</wfw:commentRss>
    

    <author>nospam@example.com (Daniel Lange)</author>
    <content:encoded>
    &lt;p&gt;The Livesearch (Javascript iterative search) plugin to &lt;a href=&quot;http://www.s9y.org&quot; target=&quot;_blank&quot; title=&quot;Serendipity (s9y)&quot;&gt;Serendipity (s9y)&lt;/a&gt; currently does not work with the &lt;a href=&quot;http://s9y-bulletproof.com&quot; target=&quot;_blank&quot; title=&quot;Bulletproof template&quot;&gt;Bulletproof template&lt;/a&gt; active.&lt;/p&gt;

&lt;p&gt;Matthias Mees (YellowLed) and Don(ald) Chambers are &lt;a href=&quot;http://s9y-bulletproof.com/index.php?url=archives/11-Customizable-navigation.html&amp;amp;serendipity[cview]=threaded#comments&quot; target=&quot;_blank&quot; title=&quot;Comments to entry at s9y-bulletproof.com&quot;&gt;looking at it&lt;/a&gt;.&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Thu, 18 Oct 2007 23:09:25 +0200</pubDate>
    <guid isPermaLink="false">http://daniel-lange.com/archives/3-guid.html</guid>
    <category>bug</category>
<category>bulletproof</category>
<category>javascript</category>
<category>serendipity</category>

</item>
<item>
    <title>Apache fails to start at boot, but works when started manually</title>
    <link>http://daniel-lange.com/archives/1-Apache-fails-to-start-at-boot,-but-works-when-started-manually.html</link>
            <category>Apache</category>
            <category>Gentoo</category>
    
    <comments>http://daniel-lange.com/archives/1-Apache-fails-to-start-at-boot,-but-works-when-started-manually.html#comments</comments>
    <wfw:comment>http://daniel-lange.com/wfwcomment.php?cid=1</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://daniel-lange.com/rss.php?version=2.0&amp;type=comments&amp;cid=1</wfw:commentRss>
    

    <author>nospam@example.com (Daniel Lange)</author>
    <content:encoded>
    &lt;p&gt;Since a baselayout update Apache fails to start on Gentoo at (re-)boot of a server if that server has unused ethernet interfaces.&lt;/p&gt;

&lt;p&gt;The symptom is that Apache fails to start on boot although it has been added to the runlevel with&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt; rc-update add apache default&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;This is caused by recent baselayouts not working properly with more than one eth and not all of them being up.&lt;br /&gt;&lt;br /&gt;Thus changing &lt;font face=&quot;courier new,courier,monospace&quot;&gt;depend() { need net ... }&lt;/font&gt; into&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;depend() { need net&lt;b&gt;.eth0&lt;/b&gt; ... }&lt;/font&gt; at the top of /etc/init.d/apache2 will help.&lt;br /&gt;&lt;br /&gt;While you&#039;re at it you could also add an nice &lt;font face=&quot;courier new,courier,monospace&quot;&gt;after urandom&lt;/font&gt; to the existing &lt;font face=&quot;courier new,courier,monospace&quot;&gt;depend ()&lt;/font&gt; construct&lt;br /&gt;and make sure apr and apache are emerged with flag urandom set. Reading from /dev/random to initialize the digest authentication mechanism (or SSL for that matter) might cause apache to block otherwise if there is not enough entropy in the random pool.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Wed, 03 Oct 2007 16:26:28 +0200</pubDate>
    <guid isPermaLink="false">http://daniel-lange.com/archives/1-guid.html</guid>
    <category>apache</category>
<category>baselayout</category>
<category>bug</category>
<category>eth</category>
<category>gentoo</category>
<category>init.d</category>
<category>network</category>

</item>

</channel>
</rss>