Re: [AD] [ alleg-Bugs-1307777 ] UNICODE BUG (4.2beta4)

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Thu, 2005-09-29 at 02:52 -0700, SourceForge.net wrote:
> Bugs item #1307777, was opened at 2005-09-29 02:52
> Message generated for change (Tracker Item Submitted) made by Item Submitter
> You can respond by visiting: 
> https://sourceforge.net/tracker/?func=detail&atid=105665&aid=1307777&group_id=5665
> 

Attached is a patch to fix it. Can we drop U_UNICODE support for
new_api_branch, and use only utf8? :)

-- 
Elias Pschernig
Index: src/modesel.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/modesel.c,v
retrieving revision 1.33
diff -u -p -r1.33 modesel.c
--- src/modesel.c	1 May 2005 13:58:05 -0000	1.33
+++ src/modesel.c	29 Sep 2005 10:40:43 -0000
@@ -609,13 +609,13 @@ static AL_CONST char *gfx_depth_getter(i
          bpp_index++;
    }
 
-   uszprintf(mode_string,
-             sizeof(mode_string),
-             uconvert_ascii("%2d %s (%s %s)", tmp),
-             bpp_value(bpp_entry),
-             get_config_text("bpp"),
-             bpp_string_list[bpp_entry],
-             get_config_text("colors"));
+   uszprintf(mode_string, sizeof(mode_string), uconvert_ascii("%2d ", tmp), bpp_value(bpp_entry));
+   ustrzcat(mode_string, sizeof(mode_string), get_config_text("bpp"));
+   ustrzcat(mode_string, sizeof(mode_string), uconvert_ascii(" (", tmp));
+   ustrzcat(mode_string, sizeof(mode_string), uconvert_ascii(bpp_string_list[bpp_entry], tmp));
+   ustrzcat(mode_string, sizeof(mode_string), uconvert_ascii(" ", tmp));
+   ustrzcat(mode_string, sizeof(mode_string), get_config_text("colors"));
+   ustrzcat(mode_string, sizeof(mode_string), uconvert_ascii(")", tmp));
  
    return mode_string;
 }


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/