Modify

Ticket #88 (closed defect: invalid)

Opened 6 years ago

Last modified 6 years ago

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

yaml_error.c Download (2.7 KB) - added by mzagrabe@… 6 years ago.
source code generating error condition
mzagrabe.yaml Download (48 bytes) - added by mzagrabe@… 6 years ago.
data file

Change History

Changed 6 years ago by mzagrabe@…

source code generating error condition

Changed 6 years ago by mzagrabe@…

data file

comment:1 Changed 6 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.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.