<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2010-12-28)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>sh</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-12-28 Sebastian Huber <sebastian.huber@embedded-brains.de>

        * libfs/src/dosfs/msdos_misc.c: Create short file names acceptable for
        Windows.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.2667&r2=text&tr2=1.2668&diff_format=h">M</a></td><td width='1%'>1.2668</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/dosfs/msdos_misc.c.diff?r1=text&tr1=1.25&r2=text&tr2=1.26&diff_format=h">M</a></td><td width='1%'>1.26</td><td width='100%'>cpukit/libfs/src/dosfs/msdos_misc.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2667 rtems/cpukit/ChangeLog:1.2668
--- rtems/cpukit/ChangeLog:1.2667       Mon Dec 27 08:35:12 2010
+++ rtems/cpukit/ChangeLog      Tue Dec 28 02:46:57 2010
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2010-12-28    Sebastian Huber <sebastian.huber@embedded-brains.de>
+
+       * libfs/src/dosfs/msdos_misc.c: Create short file names acceptable for
+       Windows.
+
</font> 2010-12-27        Sebastian Huber <sebastian.huber@embedded-brains.de>
 
        * libfs/src/dosfs/msdos.h, libfs/src/dosfs/msdos_misc.c,

<font color='#006600'>diff -u rtems/cpukit/libfs/src/dosfs/msdos_misc.c:1.25 rtems/cpukit/libfs/src/dosfs/msdos_misc.c:1.26
--- rtems/cpukit/libfs/src/dosfs/msdos_misc.c:1.25      Mon Dec 27 08:35:13 2010
+++ rtems/cpukit/libfs/src/dosfs/msdos_misc.c   Tue Dec 28 02:46:57 2010
</font><font color='#997700'>@@ -92,12 +92,13 @@
</font>     static const char* hex = "0123456789ABCDEF";
     char* c = MSDOS_DIR_NAME(sfn);
     int   i;
<font color='#880000'>-    for (i = 0; i < 3; i++, c++)
</font><font color='#000088'>+    for (i = 0; i < 2; i++, c++)
</font>       if ((*c == ' ') || (*c == '.'))
<font color='#880000'>-        *c = '~';
-    *c++ = '~';
</font><font color='#000088'>+        *c = '_';
</font>     for (i = 0; i < 4; i++, c++)
       *c = hex[(num >> ((3 - i) * 4)) & 0xf];
<font color='#000088'>+    *c++ = '~';
+    *c++ = '1';
</font> }
 
 /* msdos_name_type --
<font color='#997700'>@@ -1535,6 +1536,7 @@
</font>             char*       p;
             const char* n;
             int         i;
<font color='#000088'>+            char        fill = 0;
</font> 
             length += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;
             lfn_entry++;
<font color='#997700'>@@ -1600,9 +1602,17 @@
</font> 
             for (i = 0; i < MSDOS_LFN_LEN_PER_ENTRY; i++)
             {
<font color='#880000'>-                *p = *n;
</font>                 if (*n != 0)
<font color='#000088'>+                {
+                    *p = *n;
</font>                     n++;
<font color='#000088'>+                }
+                else
+                {
+                    p [0] = fill;
+                    p [1] = fill;
+                    fill = 0xff;
+                }
</font> 
                 switch (i)
                 {
</pre>
<p> </p>

<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>