[xiph-cvs] cvs commit: vorbis-tools/oggenc utf8.c

Michael Smith msmith at xiph.org
Thu Jul 26 05:34:38 PDT 2001



msmith      01/07/26 05:34:38

  Modified:    oggenc   utf8.c
  Log:
  Fixes for a pair of typos I made.

Revision  Changes    Path
1.5       +2 -2      vorbis-tools/oggenc/utf8.c

Index: utf8.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/oggenc/utf8.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- utf8.c	2001/07/24 12:00:15	1.4
+++ utf8.c	2001/07/26 12:34:37	1.5
@@ -18,7 +18,7 @@
 #ifdef _WIN32
 #include <windows.h>
 
-int utf8_encode(const char *from, char **to, const char *encoding)
+int utf8_encode(char *from, char **to, const char *encoding)
 {
         /* Thanks to Peter Harris <peter.harris at hummingbird.com> for this win32
          * code.
@@ -33,7 +33,7 @@
         wchars = MultiByteToWideChar(GetConsoleCP(), MB_PRECOMPOSED, from,
                         strlen(from), NULL, 0);
 
-	if(whars == 0)
+	if(wchars == 0)
         {
                 fprintf(stderr, "Unicode translation error %d\n", GetLastError());
                 return 1;

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list