Ticket #88 (closed defect: invalid)
Internal emitter error caused by yaml_emitter_set_output_string
| Reported by: | mzagrabe@… | Owned by: | xi |
|---|---|---|---|
| Priority: | normal | Component: | libyaml |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Greetings,
I am attempting to parse a yaml file in some C code and have most recently tried to use:
yaml_emitter_set_output_string
However after compiling and running the program I receive an internal emitter error.
Files attached:
yaml_error.c mzagrabe.yaml
compiled with:
gcc -c yaml_error.c && gcc -lyaml -o yaml_error yaml_error.o
command line:
% ./yaml_error mzagrabe.yaml
libyaml version:
Debian Sid
ii libyaml-0-1 0.1.1-1 ii libyaml-dev 0.1.1-1
Attachments
Change History
Changed 5 years ago by mzagrabe@…
-
attachment
yaml_error.c
added
comment:1 Changed 5 years ago by xi
- Status changed from new to closed
- Resolution set to invalid
If you want to parse a file, why are you using the emitter API? Are you trying to obtain the value of a scalar event by dumping the event into a string? If so, just use event.data.scalar.value, and event.data.scalar.length.

source code generating error condition