2019-05-01 Fred Gleason <fredg@paravelsystems.com>

* Fixed bugs in rd_import(7) that caused corruption of multi-byte
	UTF-8 characters.
This commit is contained in:
Fred Gleason
2019-05-01 12:35:28 -04:00
parent 40b98bec92
commit e1db731e0c
3 changed files with 9 additions and 28 deletions

View File

@@ -96,9 +96,12 @@ int main(int argc,char *argv[])
printf("Please enter the File Name that you want to Import ==> ");
if (fgets(filename,sizeof(filename),stdin) != NULL)
{
if((0xFF&filename[strlen(filename)-1])<32) {
filename[strlen(filename)-1]=0;
}
}
printf("Do you want to Create Cart If Doesn't Exist - (Yes or No) ==> ");
printf("Do you want to Create Cart If Doesn't Exist - (Y/N) ==> ");
if (fgets(buf,sizeof(buf),stdin) != NULL)
{
if (( buf[0] != '\n') && (buf[0] =='Y'))