Mantis - Cadmium
|
|||||
Erweiterte Problemanzeige | |||||
|
|||||
ID: | Kategorie: | Auswirkung: | Reproduzierbar: | Meldungsdatum: | Letzte Aktualisierung: |
103 | general | kleinerer Fehler | immer | 2012-07-28 06:55 | 2013-03-07 23:11 |
|
|||||
Reporter: | dobesv | Rechnertyp: | |||
Bearbeitung durch: | xclerc | Betriebssystem: | |||
Priorität: | normal | BS-Version: | |||
Status: | erledigt | Produktversion: | 1.4 | ||
Produkt-Build: | Lösung: | erledigt | |||
Projektion: | keine | ||||
Aufwand: | keine | Behoben in Version: | |||
|
|||||
Zusammenfassung: | 0000103: Unix.descr_of_in_channel stdin fails in OcamlJava, works in OCaml | ||||
Beschreibung: |
It appears that the "stdin" channel isn't assigned a unix file descriptor in Cafesterol. let () = let fd = Unix.descr_of_in_channel stdin and buf = String.create 1 in let chars_read = Unix.read fd buf 1 1 in print_endline (if chars_read == 1 then buf else "") ;; This results in : Fatal error: exception Sys_error("invalid file descriptor") I ran into this because a library I use was getting filehandles for stdin using the channel instead of looking at stdin directly. |
||||
Schritte zur Reproduktion: | |||||
Zusätzliche Information: | |||||
Problem-Beziehungen | |||||
Angehängte Dateien: | |||||
|
|||||
Problem-Historie | |||||
Änderungsdatum | Benutzername | Feld | Änderung | ||
2012-07-28 06:55 | dobesv | Neues Problem | |||
2012-07-28 07:21 | dobesv | Problemnotiz hinzugefügt: 0000252 | |||
2013-03-07 23:11 | xclerc | Status | neu => erledigt | ||
2013-03-07 23:11 | xclerc | Lösung | offen => erledigt | ||
2013-03-07 23:11 | xclerc | Bearbeitung durch | => xclerc |
Notiz | |||||
|
|||||
|
|