[1.26.08] Fixed --stdout option in "espeak" program was writing to file "stdout".

Fix to UTF-8/8-bit character set recognition.
lang=de, more additions to translation rules, changed phoneme name [OI] to [OY].
lang=it, turned of "syntactic doubling" (temporarily?)


git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@51 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2007-06-19 19:04:45 +00:00
parent 63b98602fd
commit b7f2dd2d04
21 changed files with 134 additions and 77 deletions
+4 -4
View File
@@ -183,8 +183,8 @@ static void Write4Bytes(FILE *f, int value)
int OpenWavFile(const char *path, int rate)
//=========================================
int OpenWavFile(char *path, int rate)
//===================================
{
static unsigned char wave_hdr[44] = {
'R','I','F','F',0,0,0,0,'W','A','V','E','f','m','t',' ',
@@ -197,7 +197,7 @@ int OpenWavFile(const char *path, int rate)
if(path[0] == 0)
return(0);
if(path == "stdout")
if(strcmp(path,"stdout")==0)
f_wavfile = stdout;
else
f_wavfile = fopen(path,"wb");
@@ -220,7 +220,7 @@ static void CloseWavFile(int rate)
{
unsigned int pos;
if((f_wavfile==NULL) || (wavefile == "stdout"))
if((f_wavfile==NULL) || (f_wavfile == stdout))
return;
fflush(f_wavfile);