Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New line special character in Header [BATCH-1320] #2259

Closed
spring-issuemaster opened this issue Jul 6, 2009 · 1 comment
Closed

New line special character in Header [BATCH-1320] #2259

spring-issuemaster opened this issue Jul 6, 2009 · 1 comment

Comments

@spring-issuemaster
Copy link
Collaborator

@spring-issuemaster spring-issuemaster commented Jul 6, 2009

anil opened BATCH-1320 and commented

We are able to generate output file with header by implementing FlatFileHeaderCallback and using delegate for FlatFileItemWriter.

But we see a special character(new line character) when we see output in windows server 2003 platform and we dont see new line character on windows XP .

When I further looked at FlatFileitemwriter soruce code I see following
if (headerCallback != null) {
try {
headerCallback.writeHeader(outputState.outputBuffe redWriter);
outputState.write("\n");
}.

I think we need to replace "\n" with DEFAULT_LINE_SEPARATOR which is available in the class.

Thanks


Affects: 2.0.0, 2.0.1

Reference URL: http://forum.springsource.org/showthread.php?t=74473&goto=newpost

Referenced from: commits 822f8bb, 456c169

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

@spring-issuemaster spring-issuemaster commented Jul 6, 2009

Dave Syer commented

Done, thanks (lineSeparator was the correct replacement).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.