PURPOSE: Phase II trial to study the effectiveness of triacetyluridine, fluorouracil, and leucovorin in treating patients who have unresectable, locally advanced, or metastatic cancer of the esophagus or stomach.